added a make target to sample makefile for fetching jar/source dependencies to ease...
authorerickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Fri, 18 May 2007 15:58:38 +0000 (15:58 +0000)
committererickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Fri, 18 May 2007 15:58:38 +0000 (15:58 +0000)
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@897 9efc2488-bf62-4759-914b-345cdb29e865

src/java/Makefile

index 9a61dce..594be98 100644 (file)
@@ -27,6 +27,14 @@ check:
 run:
        @$(JAVA) -cp $(JAVA_LIBS) $(JAVA_EXE) $(JAVA_ARGS)
 
+deps:
+       mkdir -p ext
+       wget 'http://woodstox.codehaus.org/stax-api-1.0.1.jar' -O ext/stax-api-1.0.1.jar
+       wget 'http://woodstox.codehaus.org/3.2.1/wstx-lgpl-3.2.1.jar' -O ext/wstx-lgpl-3.2.1.jar
+       wget 'http://img.whalin.com/memcached/jdk5/standard/java_memcached-release_1.5.1.jar' -O ext/java_memcached-release_1.5.1.jar
+       mkdir -p .tmp && cd .tmp && wget 'http://www.json.org/java/json.zip' && unzip json.zip
+       $(JAVAC) -d $(JAVA_LIBDIR) .tmp/org/json/*.java
+
 docs:
        find . -name *.java > files;
        javadoc -classpath $(JAVA_LIBS) -d doc @files;