9470de21d977efc0b85eec5664cca36c11140779
[cql-java-moved-to-github.git] / src / main / java / org / z3950 / zing / cql / Makefile
1 #
2 # Your Java compiler will require that this source directory is on the
3 # classpath.  The best way to do that is just to add the CQL-Java
4 # distribution's "src" subdirectory to your CLASSPATH environment
5 # variable, like this:
6 #       CLASSPATH=$CLASSPATH:/where/ever/you/unpacked/it/cql-java-VERSION/src
7
8 OBJ = Utils.class \
9         CQLNode.class CQLTermNode.class CQLBooleanNode.class \
10         CQLAndNode.class CQLOrNode.class CQLNotNode.class \
11         CQLProxNode.class CQLPrefixNode.class CQLSortNode.class \
12         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