teach the makefile to generate a .dmg file for the OSX app, the licenses and basic readme's still needs to be copied into the tmp/build-dmg directory.

This commit is contained in:
Jimmy Tang 2012-09-27 20:23:40 +01:00
parent a41210ece6
commit ad5b35026e

View file

@ -133,14 +133,14 @@ sdist: clean $(mans)
hackage: sdist hackage: sdist
@cabal upload dist/*.tar.gz @cabal upload dist/*.tar.gz
OSXAPP_DEST=tmp/git-annex.app OSXAPP_DEST=$(GIT_ANNEX_TMP_BUILD_DIR)/build-dmg/git-annex.app
OSXAPP_BASE=$(OSXAPP_DEST)/Contents/MacOS OSXAPP_BASE=$(OSXAPP_DEST)/Contents/MacOS
THIRDPARTY_BINS=git curl lsof xargs rsync uuid wget gpg \ THIRDPARTY_BINS=git curl lsof xargs rsync uuid wget gpg \
sha1sum sha224sum sha256sum sha384sum sha512sum sha1sum sha224sum sha256sum sha384sum sha512sum
osxapp: $(bins) osxapp: $(bins)
rm -rf "$(OSXAPP_DEST)" rm -rf "$(OSXAPP_DEST)"
install -d tmp install -d $(GIT_ANNEX_TMP_BUILD_DIR)/build-dmg
cp -R ui-macos/git-annex.app "$(OSXAPP_DEST)" cp -R ui-macos/git-annex.app "$(OSXAPP_DEST)"
install -d "$(OSXAPP_BASE)/bin" install -d "$(OSXAPP_BASE)/bin"
@ -165,4 +165,11 @@ osxapp: $(bins)
sort "$(OSXAPP_BASE)/libdirs.tmp" | uniq > "$(OSXAPP_BASE)/libdirs" sort "$(OSXAPP_BASE)/libdirs.tmp" | uniq > "$(OSXAPP_BASE)/libdirs"
rm -f "$(OSXAPP_BASE)/libdirs.tmp" rm -f "$(OSXAPP_BASE)/libdirs.tmp"
tmp/git-annex.dmg: osxapp
hdiutil create -size 640m -format UDRW -srcfolder $(GIT_ANNEX_TMP_BUILD_DIR)/build-dmg \
-volname git-annex -o tmp/git-annex.dmg
tmp/git-annex.dmg.bz2: tmp/git-annex.dmg
bzip2 tmp/git-annex.dmg
.PHONY: $(bins) test install .PHONY: $(bins) test install