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 107 jones
JAVASRC=BasicElement.java \
12
	DBDTDHandler.java \
13
	DBEntityResolver.java \
14
	DBReader.java \
15
	DBSAXDocument.java \
16
	DBSAXElement.java \
17
	DBSAXHandler.java \
18
	DBSAXWriter.java \
19
	DBSimpleQuery.java \
20
	DBTransform.java \
21
	GenericXMLValidate.java \
22
	MetaCatServlet.java \
23
	ReaderElement.java \
24
	XMLValidate.java
25
26 27 jones
default: all
27 15 jones
28 87 jones
all: orasax reader query servlet xvalid transform
29 21 jones
30 87 jones
transform:
31
	$(JAVAC) -classpath "$(CPATH)" \
32
		DBTransform.java
33
34 67 jones
xvalid:
35
	$(JAVAC) -classpath "$(CPATH)" \
36
		XMLValidate.java \
37
		GenericXMLValidate.java
38
39 50 jones
orasax: util
40 51 jones
	$(JAVAC) -classpath "$(CPATH)" \
41 15 jones
		DBSAXWriter.java \
42 21 jones
		BasicElement.java \
43 17 jones
		DBSAXElement.java \
44 74 jones
		DBSAXHandler.java \
45
		DBEntityResolver.java \
46
		DBDTDHandler.java \
47
		DBSAXDocument.java
48 15 jones
49
sundom:
50 51 jones
	$(JAVAC) -classpath "$(CPATH)" \
51 6 jones
		DBWriter.java \
52
		DBElement.java
53
54 50 jones
reader: util
55 51 jones
	$(JAVAC) -classpath "$(CPATH)" \
56 21 jones
		DBReader.java \
57 23 jones
		BasicElement.java \
58
		ReaderElement.java
59 21 jones
60 50 jones
query: util
61 51 jones
	$(JAVAC) -classpath "$(CPATH)" \
62 27 jones
		DBSimpleQuery.java
63
64 87 jones
servlet: query reader orasax xvalid transform
65 51 jones
	$(JAVAC) -classpath "$(CPATH)" MetaCatServlet.java
66 75 jones
	cp -r classes/edu /home/httpd/servlets/
67 82 jones
	cp metacat.properties /home/httpd/servlets/edu/ucsb/nceas/metacat/
68 45 jones
69 50 jones
util:
70 51 jones
	$(JAVAC) -classpath "$(CPATH)" \
71 50 jones
		MetaCatUtil.java
72
73 15 jones
test:
74 51 jones
	java -cp $(CPATH) edu.ucsb.nceas.metacat.DBSAXWriter \
75
		test.xml $(USER) $(PW)
76 6 jones
77 15 jones
test1:
78 51 jones
	java -cp $(CPATH) edu.ucsb.nceas.metacat.DBSAXWriter \
79
		test.xml $(USER) $(PW) \
80 15 jones
		jdbc:oracle:thin:@localhost:1521:test
81
82 21 jones
rdtest:
83 51 jones
	java -cp $(CPATH) edu.ucsb.nceas.metacat.DBReader 1 $(USER) $(PW)
84 21 jones
85 24 jones
rdtest1:
86 86 jones
	java -cp $(CPATH) edu.ucsb.nceas.metacat.DBReader 11 $(USER) $(PW)
87 24 jones
88 27 jones
qtest:
89 51 jones
	java -cp $(CPATH) edu.ucsb.nceas.metacat.DBSimpleQuery \
90
		Value1 $(USER) $(PW)
91 27 jones
92 28 jones
qtest1:
93 51 jones
	java -cp $(CPATH) edu.ucsb.nceas.metacat.DBSimpleQuery \
94
		lakename $(USER) $(PW)
95 28 jones
96 67 jones
xvtest:
97
	java -cp $(CPATH) XMLValidate \
98
		test.xml
99
100 99 jones
trantest:
101
	java -cp $(CPATH) edu.ucsb.nceas.metacat.DBTransform \
102
		$(USER) $(PW)
103
104 31 jones
javadoc:
105 107 jones
	cp $(JAVASRC) ./classes/edu/ucsb/nceas/metacat
106 31 jones
	javadoc -classpath $(CPATH) -d docs \
107 52 jones
		-sourcepath ./classes edu.ucsb.nceas.metacat
108 107 jones
        #-rm ./classes/edu/ucsb/nceas/metacat/*.java
109 52 jones
110 6 jones
clean:
111 74 jones
	-rm -f *.class Log classes/edu/ucsb/nceas/metacat/*.class classes/*.class