From be19182004090cb57efb46394c2c87f222800976 Mon Sep 17 00:00:00 2001 From: mike Date: Fri, 29 Jun 2007 11:48:04 +0000 Subject: [PATCH] Add "make test" rule. --- src/org/z3950/zing/cql/Makefile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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' -- 1.7.10.4