From b8982a78e21a6fa5a3e37d57bdfe3bfe28535b20 Mon Sep 17 00:00:00 2001 From: adam Date: Thu, 8 Jul 2004 10:37:18 +0000 Subject: [PATCH] switched Makefile to use new Makefile.common darcs-hash:20040708103718-5007d-548369ab8e35281ee63a192b32f55e32af3b0ce5.gz --- Makefile | 36 ++++-------------------------------- 1 file changed, 4 insertions(+), 32 deletions(-) diff --git a/Makefile b/Makefile index 70fe175..2799c69 100644 --- a/Makefile +++ b/Makefile @@ -1,37 +1,9 @@ -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 - -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.%: .download_org.ibex.% - @echo -e "\033[1mbuilding repository org.ibex.$*\033[0m" - @cd upstream/org.ibex.$*; make compile - @touch $@ - -compile: .compile -.compile: $(sources) - @make .download_org.ibex.crypto .build_org.ibex.core - @mkdir -p build/class - @javac -d build/class -classpath /jinetd/LIB/ibex.core.jar:build/class $^ - @touch $@ +$(eval $(shell test -e Makefile.common || curl -O http://core.ibex.org/Makefile.common)) +include Makefile.common +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 - run: mail.jar - 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 + sudo java -cp mail.jar:upstream/org.ibex.core/build/class -Dibex.mail.root=`pwd`/mail-root org.ibex.mail.protocol.IMAP -- 1.7.10.4