Fix rule that builds jar to use paths correctly.
[cql-java-moved-to-github.git] / src / main / java / org / z3950 / zing / cql / Makefile
1 # $Id: Makefile,v 1.18 2007-07-03 12:56:29 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 CQLSortNode.class \
13         CQLPrefix.class \
14         CQLRelation.class Modifier.class ModifierSet.class \
15         CQLParser.class CQLLexer.class CQLGenerator.class \
16         CQLParseException.class MissingParameterException.class \
17         PQFTranslationException.class \
18         UnknownIndexException.class UnknownRelationException.class \
19         UnknownRelationModifierException.class UnknownPositionException.class
20
21 JARPATH = ../../../lib/cql-java.jar
22 JAR = ../../../../../../$(JARPATH)
23 $(JAR): $(OBJ)
24         cd ../../../..; jar cf $(JARPATH) org/z3950/zing/cql/*.class
25
26 %.class: %.java
27         javac -Xlint:unchecked *.java
28
29 test: $(JAR)
30         cd ../../../../../../../test/regression && make
31
32 clean:
33         rm -f $(OBJ) 'CQLLexer$$Keyword.class'
34