it compiles!
[org.ibex.mail.git] / Makefile
1 all: mail.jar
2
3 clean:      ; rm -rf build
4 dist-clean:
5         rm -rf .configure* .install* build .compile .build*
6
7 sources    := $(shell find src -name \*.java)
8
9 .download_org.ibex.%:
10         @echo -e "\033[1mfetching repository                 org.ibex.$*\033[0m"
11         @mkdir -p upstream; cd upstream; rm -rf org.ibex.$*; rm -rf org.ibex.$*_*
12         @cd upstream; darcs get --verbose --partial --repo-name=org.ibex.$* http://$*.ibex.org
13         @touch $@
14
15 .build_org.ibex.%:
16         @echo -e "\033[1mbuilding repository                 org.ibex.$*\033[0m"
17         @cd upstream/org.ibex.$*; make compile
18         @touch $@
19
20 mail.jar: $(sources)
21         @make .download_org.ibex.crypto .build_org.ibex.core
22         @mkdir -p build/class
23         @javac -d build/class -sourcepath upstream/org.ibex.crypto/src/ -classpath upstream/org.ibex.core/build/class $^
24