1 # not a GNU package. You can remove this line, if 2 # have all needed files, that a GNU package needs 3 AUTOMAKE_OPTIONS = foreign 4 5 SUBDIRS = src data doc rpm 6 MAINTAINERCLEANFILES = aclocal.m4 config.h.in configure Makefile.in stamp-h.in 7 8 docdir = $(datadir)/doc/bbkeys 9 doc_DATA = AUTHORS BUGS ChangeLog LICENSE NEWS README TODO 10 EXTRA_DIST = $(doc_DATA) debian 11 12 dist-hook: 13 rm -rf `find $(distdir) -name CVS` 14 rm -f `find $(distdir) -name ".\#*"` 15 16 ## create Debian package 17 dist-deb: 18 dpkg-buildpackage -rfakeroot -us -uc -tc 19 20 ## create RPMs 21 dist-rpm: Makefile 22 $(MAKE) dist 23 (cd rpm; make dist-rpm) 24