summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2013-02-13 16:23:06 -0400
committerGravatar Joey Hess <joey@kitenet.net>2013-02-13 16:38:03 -0400
commit36fe7618acf4c602781f28f0cfd084b7a4e641be (patch)
treecd802ea1a9cf3c6283480827dfd113d72605de71 /Makefile
parent4951472e2eac968fff91e08de3e173e7d7d53b99 (diff)
Makefile and patches for reproducible build of utilities for android
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 420344d97..3241b1068 100644
--- a/Makefile
+++ b/Makefile
@@ -152,6 +152,7 @@ docs: $(mans)
clean:
rm -rf $(GIT_ANNEX_TMP_BUILD_DIR) $(bins) $(mans) test configure *.tix .hpc $(sources) \
doc/.ikiwiki html dist $(clibs) build-stamp tags
+ $(MAKE) -f standalone/android clean
sdist: clean $(mans)
./Build/make-sdist.sh
@@ -240,15 +241,17 @@ android:
ANDROIDAPP_DEST=$(GIT_ANNEX_TMP_BUILD_DIR)/git-annex.android
androidapp:
$(MAKE) android
+ $(MAKE) -f standalone/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
+ cp -a standalone/android/runshell "$(ANDROIDAPP_DEST)"
+ cp -aR standalone/android/git-annex-bundle "$(ANDROIDAPP_DEST)"
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"
+
+ $$HOME/.ghc/android-14/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-strip "$(ANDROIDAPP_DEST)"/git-annex-bundle/bin/*
+
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"