--- SIDPlayer/Makefile.am 2000/09/19 16:07:26 1.2 +++ SIDPlayer/Makefile.am 2004/09/07 20:39:09 1.7 @@ -2,13 +2,14 @@ SUBDIRS = src -# Requires automake 1.4 -AUTOMAKE_OPTIONS = 1.4 foreign +# Requires automake 1.5 +AUTOMAKE_OPTIONS = 1.5 foreign EXTRA_DIST = Makefile.BeOS -# Add PSID demo files and Frodo sources to distribution +# Add spec file, PSID demo files and Frodo sources to distribution dist-hook: + cp SIDPlayer.spec $(distdir) cp -R $(srcdir)/"PSID Demo" $(distdir) rm -rf $(distdir)/"PSID Demo"/CVS for i in cpu_macros.h cpu_opcodes.h prefs.h sid.cpp; do \ @@ -17,3 +18,10 @@ dist-hook: cp -p $(srcdir)/../Frodo/src/$$i $(distdir)/src; \ fi; \ done + +# Rule to build tar-gzipped distribution package +$(PACKAGE)-$(VERSION).tar.gz: dist + +# Rule to build RPM distribution package +rpm: $(PACKAGE)-$(VERSION).tar.gz + rpmbuild -ta --clean $(PACKAGE)-$(VERSION).tar.gz