build: add daemon-only compilation

This commit adds a compilation argument (--daemon) to stop after the
daemon has been built for the selected archs. No apk is generated.
This comes to use when testing daemon changes (CI builds for example)

Change-Id: I4c43f7fe2f8feef390b8d2e0af1e81635152c0a0
Tuleap: #1346
diff --git a/compile.sh b/compile.sh
index 6b12e24..8962a24 100755
--- a/compile.sh
+++ b/compile.sh
@@ -10,12 +10,21 @@
 ./make-swig.sh
 popd
 
+# Flags:
+
+  # --release: build in release mode
+  # --daemon: Only build the daemon for the selected archs
+
 RELEASE=0
+DAEMON_ONLY=0
 for i in ${@}; do
     case "$i" in
         release|--release)
         RELEASE=1
         ;;
+        daemon|--daemon)
+        DAEMON_ONLY=1
+        ;;
         *)
         ;;
     esac
@@ -31,5 +40,8 @@
        ./build-daemon.sh $* || { echo "$i build KO"; exit 1; }
     echo "$i build OK"
 done
-export ANDROID_ABIS
-make -b -j1 RELEASE=$RELEASE apk
+
+if [[ $DAEMON_ONLY -eq 0 ]]; then
+    export ANDROID_ABIS
+    make -b -j1 RELEASE=$RELEASE apk
+fi