| 1 |
## Process this file with automake to produce Makefile.in
|
| 2 |
|
| 3 |
SUBDIRS = src
|
| 4 |
|
| 5 |
# Requires automake 1.5
|
| 6 |
AUTOMAKE_OPTIONS = 1.5 foreign
|
| 7 |
|
| 8 |
EXTRA_DIST = Makefile.BeOS
|
| 9 |
|
| 10 |
# Add spec file, PSID demo files and Frodo sources to distribution
|
| 11 |
dist-hook:
|
| 12 |
cp SIDPlayer.spec $(distdir)
|
| 13 |
cp -R $(srcdir)/"PSID Demo" $(distdir)
|
| 14 |
rm -rf $(distdir)/"PSID Demo"/CVS
|
| 15 |
for i in cpu_macros.h cpu_opcodes.h prefs.h sid.cpp; do \
|
| 16 |
if [ -L $(distdir)/src/$$i ]; then \
|
| 17 |
rm -f $(distdir)/src/$$i; \
|
| 18 |
cp -p $(srcdir)/../Frodo/src/$$i $(distdir)/src; \
|
| 19 |
fi; \
|
| 20 |
done
|
| 21 |
|
| 22 |
# Rule to build tar-gzipped distribution package
|
| 23 |
$(PACKAGE)-$(VERSION).tar.gz: dist
|
| 24 |
|
| 25 |
# Rule to build RPM distribution package
|
| 26 |
rpm: $(PACKAGE)-$(VERSION).tar.gz
|
| 27 |
rpmbuild -ta --clean $(PACKAGE)-$(VERSION).tar.gz
|