%# -*-mode: makefile-*-
%define c "# "
# -*-mode: makefile-*-
#
# <:NAME>
#
%license
#
#
# <:DATE> <:AUTHOR> <<:EMAIL>>
#
%if defined("AM") || defined("AUTOMAKE")

pkgdatadir=	$(datadir)/@PACKAGE@

%if !defined("RUBY")
pkgdocdir=	$(datadir)/doc/@PACKAGE@
pkgexamplesdir=	$(datadir)/examples/@PACKAGE@
%else
pkgdocdir=	$(datadir)/doc/ruby/@PACKAGE@
pkgexamplesdir=	$(datadir)/examples/ruby/@PACKAGE@
%endif # !defined("RUBY")

pkgdata_DATA=	
pkgdoc_DATA=
pkgexamples_DATA=

bin_SCRIPTS=	

%if defined("HOOKS")
install-data-hook:
	@true

install-exec-hook:
	@true
%endif # defined("HOOKS")

EXTRA_DIST=	$(pkgdata_DATA) $(pkgdoc_DATA) $(pkgexamples_DATA) \
		$(bin_SCRIPTS)
%endif # defined("AM") || defined("AUTOMAKE")

#EOF
%end

Uses: AM, AUTOMAKE, HOOKS, RUBY

AM, AUTOMAKE:
If AM or AUTOMAKE is defined, include definitions for $(pkgdatadir) and
other appropriate code for a subdir of an automake package.

HOOKS:
if HOOKS is defined, include stub targets for the install-data-hook
and install-exec-hook targets used by automake.

RUBY:
If defined, docs and examples are placed under a common "ruby" subdirectory
of $(datadir).
