# $Id: Makefile 3214 2005-11-17 19:43:37Z bjarni $ # This makefile is not a standalone makefile, but is called from the general one # it contains targets specific to MacOS X # 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 build_OSX_bundle: $(TTD) $(Q)rm -fr "$(OSXAPP)" $(Q)mkdir -p "$(OSXAPP)"/Contents/MacOS $(Q)mkdir -p "$(OSXAPP)"/Contents/Resources $(Q)mkdir -p "$(OSXAPP)"/Contents/Data $(Q)mkdir -p "$(OSXAPP)"/Contents/Lang $(Q)echo "APPL????" > "$(OSXAPP)"/Contents/PkgInfo $(Q)cp os/macosx/openttd.icns "$(OSXAPP)"/Contents/Resources/openttd.icns $(Q)os/macosx/plistgen.sh "$(OSXAPP)" "$(REV)" $(Q)cp data/* "$(OSXAPP)"/Contents/Data/ $(Q)cp lang/*.lng "$(OSXAPP)"/Contents/Lang/ $(Q)cp $(TTD) "$(OSXAPP)"/Contents/MacOS/$(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_where_did_the_package_go.txt "OpenTTD $(RELEASE)"/Where\ did\ the\ package\ go.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)" $(OSX): $(TTD) build_OSX_bundle .PHONY: release build_OSX_bundle