summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorbjarni <bjarni@openttd.org>2004-12-22 21:12:36 +0000
committerbjarni <bjarni@openttd.org>2004-12-22 21:12:36 +0000
commita92dc63ec90343fbe1b403719882a7f8876f67ba (patch)
tree152ac6fd50333783aaad3a27f3e03b5dda93fd45 /Makefile
parente04e8f53c36fc089b233ebe58252b8e675d58f2f (diff)
downloadopenttd-a92dc63ec90343fbe1b403719882a7f8876f67ba.tar.xz
(svn r1236) MorphOS: added make release like in OSX (tokai)
MorphOS: cleaned up the code telling the difference between AmigaOS and MorphOS (tokai)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile32
1 files changed, 32 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index e974e4920..e63ee0526 100644
--- a/Makefile
+++ b/Makefile
@@ -748,6 +748,38 @@ lang/%.lng: lang/%.txt $(STRGEN) lang/english.txt
winres.o: ttd.rc
windres -o $@ $<
+ifdef MORPHOS
+release: all
+ @rm -fr "/t/openttd-$(RELEASE)-morphos.lha"
+ @mkdir -p "/t/"
+ @mkdir -p "/t/openttd-$(RELEASE)-morphos"
+ @mkdir -p "/t/openttd-$(RELEASE)-morphos/docs"
+ @mkdir -p "/t/openttd-$(RELEASE)-morphos/data"
+ @mkdir -p "/t/openttd-$(RELEASE)-morphos/lang"
+ @cp -R $(TTD) "/t/openttd-$(RELEASE)-morphos/"
+ @cp data/* "/t/openttd-$(RELEASE)-morphos/data/"
+ @cp lang/*.lng "/t/openttd-$(RELEASE)-morphos/lang/"
+ @cp readme.txt "/t/openttd-$(RELEASE)-morphos/docs/ReadMe"
+ @cp docs/console.txt "/t/openttd-$(RELEASE)-morphos/docs/Console"
+ @cp COPYING "/t/openttd-$(RELEASE)-morphos/docs/"
+ @cp changelog.txt "/t/openttd-$(RELEASE)-morphos/docs/ChangeLog"
+ @cp os/morphos/icons/openttd.info "/t/openttd-$(RELEASE)-morphos/$(TTD).info"
+ @cp os/morphos/icons/docs.info "/t/openttd-$(RELEASE)-morphos/docs.info"
+ @cp os/morphos/icons/drawer.info "/t/openttd-$(RELEASE)-morphos.info"
+ @cp os/morphos/icons/document.info "/t/openttd-$(RELEASE)-morphos/docs/ReadMe.info"
+ @cp os/morphos/icons/document.info "/t/openttd-$(RELEASE)-morphos/docs/Console.info"
+ @cp os/morphos/icons/document.info "/t/openttd-$(RELEASE)-morphos/docs/COPYING.info"
+ @cp os/morphos/icons/document.info "/t/openttd-$(RELEASE)-morphos/docs/ChangeLog.info"
+ @strip --strip-all --strip-unneeded --remove-section .comment "/t/openttd-$(RELEASE)-morphos/$(TTD)"
+ @lha a -r "t:openttd-$(RELEASE)-morphos.lha" "t:openttd-$(RELEASE)-morphos"
+ @lha a "t:openttd-$(RELEASE)-morphos.lha" "t:openttd-$(RELEASE)-morphos.info"
+ @rm -fr "/t/openttd-$(RELEASE)-morphos"
+ @rm -fr "/t/openttd-$(RELEASE)-morphos.info"
+ @echo "Release archive can be found in RAM:t/ now."
+
+.PHONY: release
+endif
+
ifdef OSX
release: all
@mkdir -p "OpenTTD $(RELEASE)"