summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 38f18782a..d4ac79e67 100644
--- a/Makefile
+++ b/Makefile
@@ -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