Include CQLSortNode.class
[cql-java-moved-to-github.git] / src / org / z3950 / zing / cql / Makefile
index e91d911..39c4f21 100644 (file)
@@ -1,21 +1,34 @@
-# $Id: Makefile,v 1.3 2002-10-31 22:22:01 mike Exp $
+# $Id: Makefile,v 1.18 2007-07-03 12:56:29 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
+# distribution's "src" subdirectory to your CLASSPATH environment
+# variable, like this:
+#      CLASSPATH=$CLASSPATH:/where/ever/you/unpacked/it/cql-java-VERSION/src
 
-all: Utils.class \
+OBJ = Utils.class \
        CQLNode.class CQLTermNode.class CQLBooleanNode.class \
        CQLAndNode.class CQLOrNode.class CQLNotNode.class \
-       CQLRelation.class CQLProxNode.class ModifierSet.class \
-       CQLParser.class CQLLexer.class CQLParseException.class \
-       CQLGenerator.class ParameterMissingException.class
+       CQLProxNode.class CQLPrefixNode.class CQLSortNode.class \
+       CQLPrefix.class \
+       CQLRelation.class Modifier.class ModifierSet.class \
+       CQLParser.class CQLLexer.class CQLGenerator.class \
+       CQLParseException.class MissingParameterException.class \
+       PQFTranslationException.class \
+       UnknownIndexException.class UnknownRelationException.class \
+       UnknownRelationModifierException.class UnknownPositionException.class
 
-docs:
-       nice javadoc -d ../../../../../docs -author -version \
-               -windowtitle cql-java org.z3950.zing.cql
+JARPATH = ../lib/cql-java.jar
+JAR = ../../../../$(JARPATH)
+$(JAR): $(OBJ)
+       cd ../../../..; jar cf $(JARPATH) org/z3950/zing/cql/*.class
 
 %.class: %.java
-       javac $<
+       javac -Xlint:unchecked *.java
+
+test: $(JAR)
+       cd ../../../../../test/regression && make
 
 clean:
-       rm -f *.class
+       rm -f $(OBJ) 'CQLLexer$$Keyword.class'
 
-cleandocs:
-       rm -r docs/*