| 4 |
## makefile-engine will do all of the hard work for you. This handles both |
## makefile-engine will do all of the hard work for you. This handles both |
| 5 |
## Intel and PowerPC builds of the BeOS. |
## Intel and PowerPC builds of the BeOS. |
| 6 |
|
|
| 7 |
# Version number |
# Get version number from configure.in |
| 8 |
SP_VERSION = 4.0 |
version := $(shell grep <configure.in INIT_AUTOMAKE | sed -e 's/.*\[//' -e 's/\].*//') |
| 9 |
|
|
| 10 |
## Application Specific Settings --------------------------------------------- |
## Application Specific Settings --------------------------------------------- |
| 11 |
|
|
| 117 |
ln -s ../Frodo/src/$@ $@ |
ln -s ../Frodo/src/$@ $@ |
| 118 |
|
|
| 119 |
# Create binary distribution |
# Create binary distribution |
| 120 |
DISTDIR = SIDPlayer-$(SP_VERSION) |
distdir = SIDPlayer-$(version) |
|
ARCHIVE = SIDPlayer-$(SP_VERSION)-$(CPU).zip |
|
| 121 |
dist: $(TARGET) |
dist: $(TARGET) |
| 122 |
-rm -rf $(DISTDIR) |
-rm -rf $(distdir) |
| 123 |
mkdir $(DISTDIR) |
mkdir $(distdir) |
| 124 |
cp COPYING README $(DISTDIR) |
cp COPYING README $(distdir) |
| 125 |
cp $(TARGET) $(DISTDIR)/SIDPlayer |
cp $(TARGET) $(distdir)/SIDPlayer |
| 126 |
cp -R "PSID Demo" $(DISTDIR) |
cp -R "PSID Demo" $(distdir) |
| 127 |
rm -rf $(DISTDIR)/"PSID Demo/CVS" |
rm -rf $(distdir)/"PSID Demo/CVS" |
| 128 |
mimeset -f $(DISTDIR) |
mimeset -f $(distdir) |
| 129 |
zip -r $(ARCHIVE) $(DISTDIR) |
zip -r $(distdir)-$(CPU).zip $(distdir) |
| 130 |
rm -rf $(DISTDIR) |
rm -rf $(distdir) |