--- SIDPlayer/Makefile.am 2000/09/19 15:34:09 1.1 +++ SIDPlayer/Makefile.am 2002/09/05 23:00:21 1.6 @@ -2,7 +2,26 @@ 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 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 \ + if [ -L $(distdir)/src/$$i ]; then \ + rm -f $(distdir)/src/$$i; \ + 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 -ta --clean $(PACKAGE)-$(VERSION).tar.gz