From: mike Date: Fri, 29 Jun 2007 11:48:04 +0000 (+0000) Subject: Add "make test" rule. X-Git-Tag: v1.5~89 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=be19182004090cb57efb46394c2c87f222800976;p=cql-java-moved-to-github.git Add "make test" rule. --- diff --git a/src/org/z3950/zing/cql/Makefile b/src/org/z3950/zing/cql/Makefile index 68087c1..6df338a 100644 --- a/src/org/z3950/zing/cql/Makefile +++ b/src/org/z3950/zing/cql/Makefile @@ -1,4 +1,4 @@ -# $Id: Makefile,v 1.16 2007-06-27 22:44:40 mike Exp $ +# $Id: Makefile,v 1.17 2007-06-29 11:48:04 mike Exp $ # # Your Java compiler will require that this source directory is on the # classpath. The best way to do that is just to add the CQL-Java @@ -17,12 +17,17 @@ OBJ = Utils.class \ UnknownIndexException.class UnknownRelationException.class \ UnknownRelationModifierException.class UnknownPositionException.class -../../../../../lib/cql-java.jar: $(OBJ) - cd ../../../..; jar cf ../lib/cql-java.jar org/z3950/zing/cql/*.class +JARPATH = ../lib/cql-java.jar +JAR = ../../../../$(JARPATH) +$(JAR): $(OBJ) + cd ../../../..; jar cf $(JARPATH) org/z3950/zing/cql/*.class %.class: %.java javac -Xlint:unchecked *.java +test: $(JAR) + cd ../../../../../test/regression && make + clean: rm -f $(OBJ) 'CQLLexer$$Keyword.class'