fixups
[org.ibex.mail.git] / Makefile
index ce6e81f..bf021a7 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,11 @@
-all: mail.jar
+main: run
 
 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"
@@ -20,5 +21,8 @@ sources    := $(shell find src -name \*.java)
 mail.jar: $(sources)
        @make .download_org.ibex.crypto .build_org.ibex.core
        @mkdir -p build/class
-       @javac -d build/class -sourcepath upstream/org.ibex.crypto/src/ -classpath upstream/org.ibex.core/build/class $^
+       @javac -d build/class -classpath upstream/org.ibex.core/build/class $^
+       @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