From 0d59e17338bb4707a94de773e6f44f9a426fdca0 Mon Sep 17 00:00:00 2001 From: k-m_schindler Date: Thu, 4 Sep 2008 22:38:44 +0000 Subject: make macosx-disk-image renamed to make macosx-dmg; new: make macosx-clean removes bundle AND diskimage git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1344 b956fd51-792f-4845-bead-9b4dfca2ff2c --- Makefile.in | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/Makefile.in b/Makefile.in index aec4be35..f48fba24 100644 --- a/Makefile.in +++ b/Makefile.in @@ -132,6 +132,18 @@ distclean: clean clean-game tidy $(RM) $(USDX_SRC_DIR)/config.inc $(RM) Makefile $(USDX_SRC_DIR)/Makefile $(PROJECTM_CWRAPPER_DIR)/Makefile +# remove Mac OS X apllication bundle and disk image +.PHONY: clean-macosx +clean-macosx: clean-macosx-app clean-macosx-dmg + +.PHONY: clean-macosx-app +clean-macosx-app: + $(RM) -r UltraStarDeluxe.app + +.PHONY: clean-macosx-dmg +clean-macosx-dmg: + $(RM) UltraStarDeluxe.dmg + # remove temporary and backup files .PHONY: tidy tidy: @@ -359,13 +371,13 @@ endef @echo "Standalone Mac OS X application created." @echo "" -.PHONY: macosx-disk-image -macosx-disk-image: macosx-standalone-app - $(RM) ultrastardx.dmg +.PHONY: macosx-dmg +macosx-dmg: macosx-standalone-app + $(RM) UltraStarDeluxe.dmg $(HDIUTIL) create -type SPARSE -size 30m -fs HFS+ -volname UltraStarDeluxe -ov -attach UltraStarDeluxe.sparseimage /bin/cp -R UltraStarDeluxe.app /Volumes/UltraStarDeluxe # /bin/cp ultrastardx/icons/UltraStarDeluxeVolumeIcon.icns /Volumes/UltraStarDeluxe/.VolumeIcon.icns # /Developer/Tools/SetFile -a C /Volumes/UltraStarDeluxe/.VolumeIcon.icns /Volumes/UltraStarDeluxe $(HDIUTIL) detach /Volumes/UltraStarDeluxe - $(HDIUTIL) convert UltraStarDeluxe.sparseimage -format UDBZ -o ultrastardx.dmg + $(HDIUTIL) convert UltraStarDeluxe.sparseimage -format UDBZ -o UltraStarDeluxe.dmg $(RM) UltraStarDeluxe.sparseimage -- cgit v1.2.3