A Sample Automake File (fragment)

A real-life example, from the gtk-doc package.

bin_SCRIPTS = \
	gtkdoc-scanobj  \
	gtkdoc-scangobj \
...

gtkdocdatadir = $(datadir)/gtk-doc
gtkdocdata_DATA = \
	gtkdoc-common.pl	\
	gtk-doc.xsl		\
	devhelp.xsl		\
...

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = gtk-doc.pc

EXTRA_DIST= \
	MAINTAINERS	\
	gtk-doc.pc.in	\
...

dist-hook:
	mkdir $(distdir)/doc
	cp -pr $(srcdir)/doc/* $(distdir)/doc
	rm -rf $(distdir)/doc/CVS
	mkdir $(distdir)/db2man
	cp -pr $(srcdir)/db2man/* $(distdir)/db2man
...