summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2013-02-25 23:05:45 -0400
committerGravatar Joey Hess <joey@kitenet.net>2013-02-25 23:05:45 -0400
commit9c8052f9db15f62d7d905b21ab9ae4e9f2f16b05 (patch)
tree5b09e3989b47ac3d1e9f9751f56f38467e84eb3e
parent6da931545e23c3caf6ecde4c9570c11b1c56bc33 (diff)
better handling of sources of utilities, for autobuilding
-rw-r--r--standalone/android/Makefile42
1 files changed, 21 insertions, 21 deletions
diff --git a/standalone/android/Makefile b/standalone/android/Makefile
index 40360ffb1..1cf44930a 100644
--- a/standalone/android/Makefile
+++ b/standalone/android/Makefile
@@ -13,7 +13,7 @@ export ANDROID_NDK_ROOT?=$(HOME)/tmp/android-ndk-r8d
GITTREE=source/git/installed-tree
-build: source build-utils start
+build: build-utils start
# Debug build because it does not need signing keys.
cd source/term && tools/build-debug
@@ -119,27 +119,27 @@ build-term:
cd source/term && perl -pi -e 's/Terminal Emulator/Git Annex/g' res/*/strings.xml
cd source/term && tools/update.sh
-source:
+source: clones
mkdir -p source
- git clone git://git.savannah.gnu.org/automake.git source/automake
- git clone git://git.debian.org/git/d-i/busybox source/busybox
- git clone git://git.kernel.org/pub/scm/git/git.git source/git
- git clone git://git.samba.org/rsync.git source/rsync
- git clone git://git.gnupg.org/gnupg.git source/gnupg
- git clone git://git.openssl.org/openssl source/openssl
- git clone git://github.com/CyanogenMod/android_external_openssh.git source/openssh
- git clone git://github.com/jackpal/Android-Terminal-Emulator.git source/term
+ cd source && \
+ for p in automake busybox git rsync gnupg openssl openssh term; do \
+ git clone ../clones/$$p $$p; \
+ done
+
+clones:
+ mkdir -p clones
+ git clone --bare git://git.savannah.gnu.org/automake.git clones/automake
+ git clone --bare git://git.debian.org/git/d-i/busybox clones/busybox
+ git clone --bare git://git.kernel.org/pub/scm/git/git.git clones/git
+ git clone --bare git://git.samba.org/rsync.git clones/rsync
+ git clone --bare git://git.gnupg.org/gnupg.git clones/gnupg
+ git clone --bare git://git.openssl.org/openssl clones/openssl
+ git clone --bare git://github.com/CyanogenMod/android_external_openssh.git clones/openssh
+ git clone --bare git://github.com/jackpal/Android-Terminal-Emulator.git clones/term
clean:
- rm -rf $(GITTREE)
+ rm -rf $(GITTREE) source
rm -f build-utils start
- cd source/busybox && $(MAKE) clean
- #cd source/openssl && $(MAKE) clean
- cd source/openssh && $(MAKE) clean
- cd source/git && $(MAKE) clean
- cd source/rsync && $(MAKE) clean
- cd source/gnupg && $(MAKE) clean
- cd source/term && ant clean
-
-reallyclean:
- rm -rf source
+
+reallyclean: clean
+ rm -rf clones