Towards 0.2 --
[cql-java-moved-to-github.git] / src / org / z3950 / zing / cql / Makefile
1 # $Id: Makefile,v 1.7 2002-11-06 00:05:58 mike Exp $
2
3 DOCDIR = ../../../../../docs
4
5 OBJ = Utils.class \
6         CQLNode.class CQLTermNode.class CQLBooleanNode.class \
7         CQLAndNode.class CQLOrNode.class CQLNotNode.class \
8         CQLRelation.class CQLProxNode.class ModifierSet.class \
9         CQLParser.class CQLLexer.class CQLParseException.class \
10         CQLGenerator.class MissingParameterException.class \
11         UnknownQualifierException.class UnknownRelationException.class
12
13 ../../../../../lib/cql-java.jar: $(OBJ)
14         cd ../../../..; jar cf ../lib/cql-java.jar org/z3950/zing/cql/*.class
15
16 docs: $(DOCDIR)/overview-tree.html
17
18 $(DOCDIR)/overview-tree.html: *.java
19         nice javadoc -d $(DOCDIR) -author -version \
20                 -windowtitle cql-java org.z3950.zing.cql
21
22 # Your Java compiler will require that this source directory is on the
23 # CLASSPATH.  You can either set your CLASSPATH environment variable
24 # to include /where/ever/you/unpacked/it/cql-java-VERSION/src or try
25 # changing the rule below to:
26 #
27 #       javac -classpath ../../../.. $<
28 #
29 # (But that will break if you need other elements in the CLASSPATH
30 # too, for the Java library -- as, for example, Jikes does.)
31 #
32 %.class: %.java
33         javac $<
34
35 clean:
36         rm -f $(OBJ) 'CQLLexer$$Keyword.class'
37
38 cleandocs:
39         rm -rf  $(DOCDIR)/allclasses-frame.html \
40                 $(DOCDIR)/deprecated-list.html \
41                 $(DOCDIR)/help-doc.html \
42                 $(DOCDIR)/index-all.html \
43                 $(DOCDIR)/index.html \
44                 $(DOCDIR)/org \
45                 $(DOCDIR)/overview-tree.html \
46                 $(DOCDIR)/package-list \
47                 $(DOCDIR)/packages.html \
48                 $(DOCDIR)/serialized-form.html \
49                 $(DOCDIR)/stylesheet.css