bogus patch
[org.ibex.mail.git] / Makefile
index c432e83..70fe175 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -20,11 +20,18 @@ upstream/org.ibex.crypto/src/org/ibex/crypto/Base36.java: .download_org.ibex.cry
        @cd upstream/org.ibex.$*; make compile
        @touch $@
 
-mail.jar: $(sources)
+compile: .compile
+.compile: $(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 $^
+       @javac -d build/class -classpath /jinetd/LIB/ibex.core.jar:build/class $^
+       @touch $@
+
+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
+
 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
\ No newline at end of file