diff options
author | Joey Hess <joey@kitenet.net> | 2013-02-13 14:31:22 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2013-02-13 14:31:22 -0400 |
commit | 3c0601bbffddea26a81ce60c0a30c25daed78551 (patch) | |
tree | d9a7c2126ea015e3105c1cce64679228c05edfb4 /Makefile | |
parent | 86a2e79338c13108e100859a942883690ad286f3 (diff) |
add androidapp target
The android-utilities/ directory currently needs to be set up by hand to
contain busybox, etc.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -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) |