6df338a70cd5ca52d38104a899e0e13900bc3708
[cql-java-moved-to-github.git] / src / org / z3950 / zing / cql / Makefile
1 # $Id: Makefile,v 1.17 2007-06-29 11:48:04 mike Exp $
2 #
3 # Your Java compiler will require that this source directory is on the
4 # classpath.  The best way to do that is just to add the CQL-Java
5 # distribution's "src" subdirectory to your CLASSPATH environment
6 # variable, like this:
7 #       CLASSPATH=$CLASSPATH:/where/ever/you/unpacked/it/cql-java-VERSION/src
8
9 OBJ = Utils.class \
10         CQLNode.class CQLTermNode.class CQLBooleanNode.class \
11         CQLAndNode.class CQLOrNode.class CQLNotNode.class \
12         CQLProxNode.class CQLPrefixNode.class CQLPrefix.class \
13         CQLRelation.class Modifier.class ModifierSet.class \
14         CQLParser.class CQLLexer.class CQLGenerator.class \
15         CQLParseException.class MissingParameterException.class \
16         PQFTranslationException.class \
17         UnknownIndexException.class UnknownRelationException.class \
18         UnknownRelationModifierException.class UnknownPositionException.class
19
20 JARPATH = ../lib/cql-java.jar
21 JAR = ../../../../$(JARPATH)
22 $(JAR): $(OBJ)
23         cd ../../../..; jar cf $(JARPATH) org/z3950/zing/cql/*.class
24
25 %.class: %.java
26         javac -Xlint:unchecked *.java
27
28 test: $(JAR)
29         cd ../../../../../test/regression && make
30
31 clean:
32         rm -f $(OBJ) 'CQLLexer$$Keyword.class'
33