summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2013-05-02 16:07:44 -0400
committerGravatar Joey Hess <joey@kitenet.net>2013-05-02 16:07:44 -0400
commit0eae6a22e54aac00198470b031f00985bc3fadae (patch)
tree977fe591e8a248e25da0855e1192f3a9377816f8 /Makefile
parentaed070cc4e2e97e3920f0e37633ee2fc864c2f9b (diff)
android build improvements
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 4800d72a9..4e4523d2d 100644
--- a/Makefile
+++ b/Makefile
@@ -177,7 +177,7 @@ android: Build/EvilSplicer
# Some additional dependencies needed by the expanded splices.
sed -i 's/^ Build-Depends: / Build-Depends: yesod-routes, yesod-core, shakespeare-css, shakespeare-js, shakespeare, blaze-markup, file-embed, wai-app-static, /' tmp/androidtree/git-annex.cabal
# Avoid warnings due to sometimes unused imports added for the splices.
- sed -i 's/GHC-Options: \\(.*\\)-Wall/GHC-Options: \\1-Wall -fno-warn-unused-imports /i' tmp/androidtree/git-annex.cabal
+ sed -i 's/GHC-Options: \(.*\)-Wall/GHC-Options: \1-Wall -fno-warn-unused-imports /i' tmp/androidtree/git-annex.cabal
# Cabal cannot cross compile with custom build type, so workaround.
sed -i 's/Build-type: Custom/Build-type: Simple/' tmp/androidtree/git-annex.cabal
if [ ! -e tmp/androidtree/dist/setup/setup ]; then \
@@ -187,6 +187,10 @@ android: Build/EvilSplicer
fi
$(MAKE) -C tmp/androidtree git-annex
+adb:
+ ANDROID_FLAGS="-Production" $(MAKE) android
+ adb push tmp/androidtree/dist/build/git-annex/git-annex /data/data/ga.androidterm/bin/git-annex
+
androidapp:
$(MAKE) android
$(MAKE) -C standalone/android