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