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 67 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
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
		DBSAXHandler.java
26 15 jones
27
sundom:
28 51 jones
	$(JAVAC) -classpath "$(CPATH)" \
29 6 jones
		DBWriter.java \
30
		DBElement.java
31
32 50 jones
reader: util
33 51 jones
	$(JAVAC) -classpath "$(CPATH)" \
34 21 jones
		DBReader.java \
35 23 jones
		BasicElement.java \
36
		ReaderElement.java
37 21 jones
38 50 jones
query: util
39 51 jones
	$(JAVAC) -classpath "$(CPATH)" \
40 27 jones
		DBSimpleQuery.java
41
42 49 jones
servlet: query reader
43 51 jones
	$(JAVAC) -classpath "$(CPATH)" MetaCatServlet.java
44
	cp -r classes/edu /home/httpd/servlets/
45 45 jones
46 50 jones
util:
47 51 jones
	$(JAVAC) -classpath "$(CPATH)" \
48 50 jones
		MetaCatUtil.java
49
50 15 jones
test:
51 51 jones
	java -cp $(CPATH) edu.ucsb.nceas.metacat.DBSAXWriter \
52
		test.xml $(USER) $(PW)
53 6 jones
54 15 jones
test1:
55 51 jones
	java -cp $(CPATH) edu.ucsb.nceas.metacat.DBSAXWriter \
56
		test.xml $(USER) $(PW) \
57 15 jones
		jdbc:oracle:thin:@localhost:1521:test
58
59 21 jones
rdtest:
60 51 jones
	java -cp $(CPATH) edu.ucsb.nceas.metacat.DBReader 1 $(USER) $(PW)
61 21 jones
62 24 jones
rdtest1:
63 51 jones
	java -cp $(CPATH) edu.ucsb.nceas.metacat.DBReader 31 $(USER) $(PW)
64 24 jones
65 27 jones
qtest:
66 51 jones
	java -cp $(CPATH) edu.ucsb.nceas.metacat.DBSimpleQuery \
67
		Value1 $(USER) $(PW)
68 27 jones
69 28 jones
qtest1:
70 51 jones
	java -cp $(CPATH) edu.ucsb.nceas.metacat.DBSimpleQuery \
71
		lakename $(USER) $(PW)
72 28 jones
73 67 jones
xvtest:
74
	java -cp $(CPATH) XMLValidate \
75
		test.xml
76
77 31 jones
javadoc:
78
	javadoc -classpath $(CPATH) -d docs \
79 52 jones
		-sourcepath ./classes edu.ucsb.nceas.metacat
80
81 6 jones
clean:
82 54 jones
	-rm -f *.class Log classes/edu/ucsb/nceas/metacat/*.class