summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2013-02-27 15:16:52 -0400
committerGravatar Joey Hess <joey@kitenet.net>2013-02-27 15:16:52 -0400
commit9e121a34e1db97f6e100a0d50e276cea16255baf (patch)
treef8f4f0764db270d667c0778ee14f8ed07789ad06 /Makefile
parent317e8c9bf6097df93c28e7d335cea0a2006c23f0 (diff)
fix android cross compile, working around cabal limitation
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 62c198d09..4f5b526ef 100644
--- a/Makefile
+++ b/Makefile
@@ -163,8 +163,12 @@ osxapp:
# Cross compile for Android.
# Uses https://github.com/neurocyte/ghc-android
android:
+ cabal configure
+# cabal cannot cross compile with custom build type, so workaround
+ sed -i 's/Build-type: Custom/Build-type: Simple/' git-annex.cabal
$$HOME/.ghc/android-14/arm-linux-androideabi-4.7/arm-linux-androideabi/bin/cabal configure -f'Android Assistant -Pairing -Webapp'
$(MAKE) git-annex
+ sed -i 's/Build-type: Simple/Build-type: Custom/' git-annex.cabal
androidapp:
$(MAKE) android