Project

General

Profile

1 6 jones
# For Win32, make 'SEP' be a semicolon
2
SEP=:
3
#CPATH=../../xml.jar$(SEP)$(JAVA_HOME)/lib/classes.zip
4 74 jones
CPATH=/home/httpd/servlets/xsql/lib/xmlparserv2.jar$(SEP)$(ORACLE_HOME)/jdbc/lib/classes111.zip$(SEP)/usr/lib/apache/ApacheJServ.jar$(SEP)/home/httpd/classes/servlet-2.0.jar$(SEP)./classes$(SEP)catalog.jar$(SEP)./classes
5 26 jones
6 21 jones
USER=jones
7 53 jones
PW=your-pw-goes-here
8 6 jones
9 51 jones
JAVAC=javac -d classes
10 26 jones
11 27 jones
default: all
12 15 jones
13 67 jones
all: orasax reader query servlet xvalid
14 21 jones
15 67 jones
xvalid:
16
	$(JAVAC) -classpath "$(CPATH)" \
17
		XMLValidate.java \
18
		GenericXMLValidate.java
19
20 50 jones
orasax: util
21 51 jones
	$(JAVAC) -classpath "$(CPATH)" \
22 15 jones
		DBSAXWriter.java \
23 21 jones
		BasicElement.java \
24 17 jones
		DBSAXElement.java \
25 74 jones
		DBSAXHandler.java \
26
		DBEntityResolver.java \
27
		DBDTDHandler.java \
28
		DBSAXDocument.java
29 15 jones
30
sundom:
31 51 jones
	$(JAVAC) -classpath "$(CPATH)" \
32 6 jones
		DBWriter.java \
33
		DBElement.java
34
35 50 jones
reader: util
36 51 jones
	$(JAVAC) -classpath "$(CPATH)" \
37 21 jones
		DBReader.java \
38 23 jones
		BasicElement.java \
39
		ReaderElement.java
40 21 jones
41 50 jones
query: util
42 51 jones
	$(JAVAC) -classpath "$(CPATH)" \
43 27 jones
		DBSimpleQuery.java
44
45 76 jones
servlet: query reader orasax xvalid
46 51 jones
	$(JAVAC) -classpath "$(CPATH)" MetaCatServlet.java
47 75 jones
	cp -r classes/edu /home/httpd/servlets/
48 45 jones
49 50 jones
util:
50 51 jones
	$(JAVAC) -classpath "$(CPATH)" \
51 50 jones
		MetaCatUtil.java
52
53 15 jones
test:
54 51 jones
	java -cp $(CPATH) edu.ucsb.nceas.metacat.DBSAXWriter \
55
		test.xml $(USER) $(PW)
56 6 jones
57 15 jones
test1:
58 51 jones
	java -cp $(CPATH) edu.ucsb.nceas.metacat.DBSAXWriter \
59
		test.xml $(USER) $(PW) \
60 15 jones
		jdbc:oracle:thin:@localhost:1521:test
61
62 21 jones
rdtest:
63 51 jones
	java -cp $(CPATH) edu.ucsb.nceas.metacat.DBReader 1 $(USER) $(PW)
64 21 jones
65 24 jones
rdtest1:
66 51 jones
	java -cp $(CPATH) edu.ucsb.nceas.metacat.DBReader 31 $(USER) $(PW)
67 24 jones
68 27 jones
qtest:
69 51 jones
	java -cp $(CPATH) edu.ucsb.nceas.metacat.DBSimpleQuery \
70
		Value1 $(USER) $(PW)
71 27 jones
72 28 jones
qtest1:
73 51 jones
	java -cp $(CPATH) edu.ucsb.nceas.metacat.DBSimpleQuery \
74
		lakename $(USER) $(PW)
75 28 jones
76 67 jones
xvtest:
77
	java -cp $(CPATH) XMLValidate \
78
		test.xml
79
80 31 jones
javadoc:
81
	javadoc -classpath $(CPATH) -d docs \
82 52 jones
		-sourcepath ./classes edu.ucsb.nceas.metacat
83
84 6 jones
clean:
85 74 jones
	-rm -f *.class Log classes/edu/ucsb/nceas/metacat/*.class classes/*.class