summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2013-02-13 14:31:22 -0400
committerGravatar Joey Hess <joey@kitenet.net>2013-02-13 14:31:22 -0400
commit3c0601bbffddea26a81ce60c0a30c25daed78551 (patch)
treed9a7c2126ea015e3105c1cce64679228c05edfb4
parent86a2e79338c13108e100859a942883690ad286f3 (diff)
add androidapp target
The android-utilities/ directory currently needs to be set up by hand to contain busybox, etc.
-rw-r--r--Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index d1248bdb9..420344d97 100644
--- a/Makefile
+++ b/Makefile
@@ -237,6 +237,24 @@ android:
FEATURES="-DWITH_ANDROID -DWITH_ASSISTANT -DWITH_GLOB -DWITH_DNS" \
OS=Android $(MAKE) fast
+ANDROIDAPP_DEST=$(GIT_ANNEX_TMP_BUILD_DIR)/git-annex.android
+androidapp:
+ $(MAKE) android
+
+ rm -rf "$(ANDROIDAPP_DEST)"
+
+ cp -R standalone/android "$(ANDROIDAPP_DEST)"
+
+ cp -aR $(GIT_ANNEX_TMP_BUILD_DIR)/android-utilities/ $(ANDROIDAPP_DEST)/git-annex-bundle
+ install -d "$(ANDROIDAPP_DEST)/git-annex-bundle/bin"
+ cp git-annex "$(ANDROIDAPP_DEST)/git-annex-bundle/bin/"
+ $$HOME/.ghc/android-14/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-strip "$(ANDROIDAPP_DEST)/git-annex-bundle/bin/git-annex"
+ ln -sf git-annex "$(ANDROIDAPP_DEST)/git-annex-bundle/bin/git-annex-shell"
+ zcat standalone/licences.gz > $(ANDROIDAPP_DEST)/git-annex-bundle/LICENSE
+ install -d "$(ANDROIDAPP_DEST)/git-annex-bundle/templates"
+
+ cd $(ANDROIDAPP_DEST) && tar czf ../git-annex-android.tar.gz .
+
# used by ./ghci
getflags:
@echo $(ALLFLAGS) $(clibs)