diff options
author | bjarni <bjarni@openttd.org> | 2006-03-23 13:29:58 +0000 |
---|---|---|
committer | bjarni <bjarni@openttd.org> | 2006-03-23 13:29:58 +0000 |
commit | 5ea7685c2d6171ec40ce422e6c45c8e81368c3c4 (patch) | |
tree | 2e1be14aef264496bacdf7e92e2b84802643e66d /os | |
parent | db2431e753f0d71ecfd105d63bf2d2b113b35909 (diff) | |
download | openttd-5ea7685c2d6171ec40ce422e6c45c8e81368c3c4.tar.xz |
(svn r4060) -Codechange: [OSX] made the release target (in os/macosx/Makefile) easier to use since it gives the release disk image the right name automatically
it now uses REV instead of RELEASE, which means RELEASE is not needed to be set manaully anymore
it also automatically adds "-jaguar" when making a build aimed at OSX 10.2 (codenamed jaguar)
Diffstat (limited to 'os')
-rw-r--r-- | os/macosx/Makefile | 37 |
1 files changed, 21 insertions, 16 deletions
diff --git a/os/macosx/Makefile b/os/macosx/Makefile index de9a8481d..cf2c50fc6 100644 --- a/os/macosx/Makefile +++ b/os/macosx/Makefile @@ -34,6 +34,10 @@ else BUILD_OSX_BUNDLE:=build_OSX_bundle endif +ifdef JAGUAR +JAGUAR_POSTFIX := -jaguar +endif + # build the bundle. OSX wants to keep apps in bundles, so we will give it one # the good thing about bundles is that you can keep extra files in them, so we keep lng files and a data dir in it @@ -54,22 +58,23 @@ $(BUILD_OSX_BUNDLE): $(TTD) # make the release disk image. Should only be used with releases and is a good and fast way to make sure to remember all the needed files release: all - $(Q)mkdir -p "OpenTTD $(RELEASE)" - $(Q)mkdir -p "OpenTTD $(RELEASE)"/docs - $(Q)mkdir -p "OpenTTD $(RELEASE)"/scenario - $(Q)cp -R $(OSXAPP) "OpenTTD $(RELEASE)"/ - $(Q)cp docs/OSX_install_instructions.txt "OpenTTD $(RELEASE)"/How\ to\ install\ (please\ read).txt - $(Q)cp readme.txt "OpenTTD $(RELEASE)"/docs/ - $(Q)cp docs/README_if_game_crashed_on_OSX.txt "OpenTTD $(RELEASE)"/docs/readme\ if\ crashed\ on\ OSX.txt - $(Q)cp docs/console.txt "OpenTTD $(RELEASE)"/docs/ - $(Q)cp COPYING "OpenTTD $(RELEASE)"/docs/ - $(Q)cp changelog.txt "OpenTTD $(RELEASE)"/docs/ - $(Q)cp docs/README_if_game_crashed_on_OSX.txt "OpenTTD $(RELEASE)"/docs/ - $(Q)cp os/macosx/*.webloc "OpenTTD $(RELEASE)" - $(Q)cp known-bugs.txt "OpenTTD $(RELEASE)"/known-bugs.txt - $(Q)cp scenario/* "OpenTTD $(RELEASE)"/scenario/ - $(Q)/usr/bin/hdiutil create -ov -format UDZO -srcfolder "OpenTTD $(RELEASE)" openttd-"$(RELEASE)"-osx.dmg - $(Q)rm -fr "OpenTTD $(RELEASE)" + @echo '===> Building release disk image' + $(Q)mkdir -p "OpenTTD $(REV)" + $(Q)mkdir -p "OpenTTD $(REV)/docs" + $(Q)mkdir -p "OpenTTD $(REV)/scenario" + $(Q)cp -R $(OSXAPP) "OpenTTD $(REV)/" + $(Q)cp docs/OSX_install_instructions.txt "OpenTTD $(REV)/How to install (please read).txt" + $(Q)cp readme.txt "OpenTTD $(REV)/docs/" + $(Q)cp docs/README_if_game_crashed_on_OSX.txt "OpenTTD $(REV)/docs/readme if crashed on OSX.txt" + $(Q)cp docs/console.txt "OpenTTD $(REV)/docs/" + $(Q)cp COPYING "OpenTTD $(REV)/docs/" + $(Q)cp changelog.txt "OpenTTD $(REV)/docs/" + $(Q)cp docs/README_if_game_crashed_on_OSX.txt "OpenTTD $(REV)/docs/" + $(Q)cp os/macosx/*.webloc "OpenTTD $(REV)" + $(Q)cp known-bugs.txt "OpenTTD $(REV)/known-bugs.txt" + $(Q)cp scenario/* "OpenTTD $(REV)/scenario/" + $(Q)/usr/bin/hdiutil create -ov -format UDZO -srcfolder "OpenTTD $(REV)" openttd-"$(REV)"-osx"$(JAGUAR_POSTFIX)".dmg + $(Q)rm -fr "OpenTTD $(REV)" $(OSX): $(TTD) $(BUILD_OSX_BUNDLE) |