--- 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