newer, better Makefile
[org.ibex.xt-crawshaw.git] / Makefile
index 3004f4e..4c48700 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,23 @@
-default: ../tool/build ../util/build ../js/build
+project := xt
+
+cp := ../tool/build
+cp += ../util/build
+cp += ../js/build
+cp += ../upstream/servlet-2.3.jar
+cp += ../upstream/prevayler-2.02.005.jar
+
+space := $(empty) $(empty)
+
+default: $(cp)
        @mkdir -p build
-       @echo "Compiling       org.ibex.xt"
-       @java -cp ../tool/build:../util/build:../js/build \
+       @echo "Compiling       org.ibex.$(project)"
+       @java -cp $(subst $(space),:,$(cp)) \
                org.ibex.tool.Compiler -d build src/java
 
+../upstream/%:
+       @mkdir -p ../upstream
+       @wget -P ../upstream -c http://repo.zentus.com/upstream/$*
+
 ../%/build: fetch-%
        @make -s -C ../$*/ -f ../$*/Makefile