diff options
author | Jimmy Tang <jtang@tchpc.tcd.ie> | 2012-09-27 20:23:40 +0100 |
---|---|---|
committer | Jimmy Tang <jtang@tchpc.tcd.ie> | 2012-09-27 20:23:40 +0100 |
commit | 920704f82167b6b1e0f512fa8d83d5e477a62ccc (patch) | |
tree | 17ecbd2ada998e2f58151e2f4c03e16a29f58d3d | |
parent | 5271a83e301c6717d92a806c53247e2ea0d5663e (diff) |
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.
-rw-r--r-- | Makefile | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -133,14 +133,14 @@ sdist: clean $(mans) hackage: sdist @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 THIRDPARTY_BINS=git curl lsof xargs rsync uuid wget gpg \ sha1sum sha224sum sha256sum sha384sum sha512sum osxapp: $(bins) 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)" install -d "$(OSXAPP_BASE)/bin" @@ -165,4 +165,11 @@ osxapp: $(bins) sort "$(OSXAPP_BASE)/libdirs.tmp" | uniq > "$(OSXAPP_BASE)/libdirs" 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 |