--- SIDPlayer/Makefile.am 2000/09/19 16:07:26 1.2 +++ SIDPlayer/Makefile.am 2000/10/05 17:03:50 1.3 @@ -7,8 +7,9 @@ AUTOMAKE_OPTIONS = 1.4 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 + rpm --tarball a $(PACKAGE)-$(VERSION).tar.gz