build osx app in tmp dir
This commit is contained in:
parent
b7724825d4
commit
19291ae8ad
1 changed files with 6 additions and 1 deletions
7
Makefile
7
Makefile
|
@ -133,11 +133,16 @@ sdist: clean $(mans)
|
||||||
hackage: sdist
|
hackage: sdist
|
||||||
@cabal upload dist/*.tar.gz
|
@cabal upload dist/*.tar.gz
|
||||||
|
|
||||||
OSXAPP_BASE=ui-macos/git-annex.app/Contents/MacOS
|
OSXAPP_DEST=tmp/git-annex.app
|
||||||
|
OSXAPP_BASE=$(OSXAPP_DEST/Contents/MacOS)
|
||||||
THIRDPARTY_BINS=git curl lsof xargs rsync uuid wget xargs \
|
THIRDPARTY_BINS=git curl lsof xargs rsync uuid wget xargs \
|
||||||
sha1sum sha224sum sha256sum sha384sum sha512sum
|
sha1sum sha224sum sha256sum sha384sum sha512sum
|
||||||
|
|
||||||
osxapp: $(bins)
|
osxapp: $(bins)
|
||||||
|
rm -rf "$(OSXAPP_DEST)"
|
||||||
|
install -d "$(OSXAPP_DEST)"
|
||||||
|
cp -R ui-macos/git-annex.app "$(OSXAPP_DEST)"
|
||||||
|
|
||||||
install -d "$(OSXAPP_BASE)/bin"
|
install -d "$(OSXAPP_BASE)/bin"
|
||||||
for bin in git-annex $(THIRDPARTY_BINS); do \
|
for bin in git-annex $(THIRDPARTY_BINS); do \
|
||||||
cp "$$(which "$$bin")" "$(OSXAPP_BASE)/bin/" || echo "$$bin not available; skipping"; \
|
cp "$$(which "$$bin")" "$(OSXAPP_BASE)/bin/" || echo "$$bin not available; skipping"; \
|
||||||
|
|
Loading…
Reference in a new issue