Add comment on needing the source directory to be on the CLASSPATH.
[cql-java-moved-to-github.git] / src / org / z3950 / zing / cql / Makefile
1 # $Id: Makefile,v 1.6 2002-11-04 12:55:23 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 ParameterMissingException.class
11
12 ../../../../../lib/cql-java.jar: $(OBJ)
13         cd ../../../..; jar cf ../lib/cql-java.jar org/z3950/zing/cql/*.class
14
15 docs: $(DOCDIR)/overview-tree.html
16
17 $(DOCDIR)/overview-tree.html: *.java
18         nice javadoc -d $(DOCDIR) -author -version \
19                 -windowtitle cql-java org.z3950.zing.cql
20
21 # Your Java compiler will require that this source directory is on the
22 # CLASSPATH.  You can either set your CLASSPATH environment variable
23 # to include /where/ever/you/unpacked/it/cql-java-VERSION/src or try
24 # changing the rule below to:
25 #
26 #       javac -classpath ../../../.. $<
27 #
28 # (But that will break if you need other elements in the CLASSPATH
29 # too, for the Java library -- as, for example, Jikes does.)
30 #
31 %.class: %.java
32         javac $<
33
34 clean:
35         rm -f $(OBJ) 'CQLLexer$$Keyword.class'
36
37 cleandocs:
38         rm -rf  $(DOCDIR)/allclasses-frame.html \
39                 $(DOCDIR)/deprecated-list.html \
40                 $(DOCDIR)/help-doc.html \
41                 $(DOCDIR)/index-all.html \
42                 $(DOCDIR)/index.html \
43                 $(DOCDIR)/org \
44                 $(DOCDIR)/overview-tree.html \
45                 $(DOCDIR)/package-list \
46                 $(DOCDIR)/packages.html \
47                 $(DOCDIR)/serialized-form.html \
48                 $(DOCDIR)/stylesheet.css