summaryrefslogtreecommitdiff
path: root/databases/postgis-jdbc/files/patch-Makefile
blob: d657301bc048b6aa931c400bc28f8f6044c8129e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
diff -urN ../jdbc.orig/Makefile ./Makefile
--- ../jdbc.orig/Makefile	Fri Jun 25 18:11:45 2004
+++ ./Makefile	Fri Jun 25 18:12:52 2004
@@ -1,15 +1,21 @@
 JAVAC = javac
 JAVA = java
 JAR = jar
-CLASSPATH = ../../../src/interfaces/jdbc/jars/postgresql.jar:.
+CLASSPATH = $(JAVAJARDIR)/postgresql.jar:.
 
 all: 	ogis \
 	pgobjs \
-	test
+	test \
+	jar
 
 jar:
 	$(JAR) -cf postgis.jar org/postgis/*.java org/postgis/*.class README	
 
+install:
+	$(INSTALL_DATA) postgis.jar $(JAVAJARDIR)
+	[ -d $(EXAMPLESDIR) ] || mkdir $(EXAMPLESDIR) || exit -1
+	$(INSTALL_DATA) examples/Test.java examples/TestServer.java $(EXAMPLESDIR)
+
 ogis: 
 	$(JAVAC) -classpath $(CLASSPATH) \
 		org/postgis/Geometry.java \
@@ -20,19 +26,21 @@
 		org/postgis/LinearRing.java \
 		org/postgis/Polygon.java \
 		org/postgis/MultiPolygon.java
+	touch ogis
 
 
 pgobjs:
 	$(JAVAC) -classpath $(CLASSPATH) \
 		org/postgis/PGgeometry.java \
 		org/postgis/PGbox3d.java
+	touch pgobjs
 
 test:
 	$(JAVAC) -classpath $(CLASSPATH) examples/Test.java
 	$(JAVA) -classpath $(CLASSPATH) examples/Test
-	
+	touch test
 
 jtest:
 	$(JAVAC) -classpath $(CLASSPATH) examples/TestServer.java
 	$(JAVA) -classpath $(CLASSPATH) examples/TestServer
-
+	touch jtest