almost working
[org.ibex.mail.git] / Makefile
index bf021a7..c432e83 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -7,13 +7,15 @@ dist-clean:
 sources    := $(shell find src -name \*.java)
 sources    += upstream/org.ibex.crypto/src/org/ibex/crypto/Base36.java
 
+upstream/org.ibex.crypto/src/org/ibex/crypto/Base36.java: .download_org.ibex.crypto
+
 .download_org.ibex.%:
        @echo -e "\033[1mfetching repository                 org.ibex.$*\033[0m"
        @mkdir -p upstream; cd upstream; rm -rf org.ibex.$*; rm -rf org.ibex.$*_*
        @cd upstream; darcs get --verbose --partial --repo-name=org.ibex.$* http://$*.ibex.org
        @touch $@
 
-.build_org.ibex.%:
+.build_org.ibex.%: .download_org.ibex.%
        @echo -e "\033[1mbuilding repository                 org.ibex.$*\033[0m"
        @cd upstream/org.ibex.$*; make compile
        @touch $@