summaryrefslogtreecommitdiff
blob: 8141ba848ad17127359e9f9791835c9416fafa67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--- Makefile.orig	2003-05-23 05:32:53.000000000 +0930
+++ Makefile	2004-09-18 23:42:47.583843792 +0930
@@ -7,15 +7,16 @@
 #
 #-------------------------------------------------------------------------
 
-bindir = /usr/bin/X11
-libdir = /usr/lib
+bindir = $(prefix)/usr/X11R6/bin
+libdir = $(prefix)/usr/lib
 wish = /usr/bin/wish
 
 pgaccess: 
 	chmod a+x pgaccess.tcl
-	mkdir -p $(libdir)/pgaccess
+	[ -d $(libdir)/pgaccess ] || mkdir -p $(libdir)/pgaccess
 	cp -R * $(libdir)/pgaccess
-	ln -sf $(libdir)/pgaccess/pgaccess.tcl $(bindir)/pgaccess
+	[ -d $(bindir) ] || mkdir -p $(bindir)
+	cd $(bindir) && ln -sf /usr/lib/pgaccess/pgaccess.tcl pgaccess
 
 all: pgaccess