X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=Makefile;h=2799c691a7f3ba61e975762fe2e0fdb39ce00aec;hb=a88f6ec76fd6bf80b5486c2ca8ae6c960bfc3c24;hp=bf021a74a238081d9318b4b2a572673b52a4fa48;hpb=c09dcaa5936eb38ce02957a44df54a6e94a2aae7;p=org.ibex.mail.git diff --git a/Makefile b/Makefile index bf021a7..2799c69 100644 --- a/Makefile +++ b/Makefile @@ -1,28 +1,9 @@ -main: run +$(eval $(shell test -e Makefile.common || curl -O http://core.ibex.org/Makefile.common)) +include Makefile.common -clean: ; rm -rf build -dist-clean: - rm -rf .configure* .install* build .compile .build* - -sources := $(shell find src -name \*.java) -sources += upstream/org.ibex.crypto/src/org/ibex/crypto/Base36.java - -.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.%: - @echo -e "\033[1mbuilding repository org.ibex.$*\033[0m" - @cd upstream/org.ibex.$*; make compile - @touch $@ - -mail.jar: $(sources) - @make .download_org.ibex.crypto .build_org.ibex.core - @mkdir -p build/class - @javac -d build/class -classpath upstream/org.ibex.core/build/class $^ +default: mail.jar +mail.jar: .compile @cd build/class; jar cvf ../../mail.jar . run: mail.jar - java -cp mail.jar:upstream/org.ibex.core/build/class org.ibex.mail.protocol.SMTP \ No newline at end of file + sudo java -cp mail.jar:upstream/org.ibex.core/build/class -Dibex.mail.root=`pwd`/mail-root org.ibex.mail.protocol.IMAP