--- makefile.unx.orig	Mon Nov  6 09:58:48 2000
+++ makefile.unx	Thu Jan 11 22:48:17 2001
@@ -20,13 +20,13 @@
 RM=/bin/rm -f
 SHELL=/bin/sh
 
-BINDIR=/usr/local/bin
-INCLUDES=-I/usr/openwin/include -I../src -I.
+BINDIR=${PREFIX}/bin
+INCLUDES=-I../src -I.
 LIBS=
 # if you have a strict ANSI compiler, add -D__STDC__
 DEFINES=-DUNIX -DEPSTOOL -DHAVE_UNISTD_H
 OBJ=o
-CC=gcc
+#CC=gcc
 
 OBJS=epstool.$(OBJ) gvceps.$(OBJ) dscparse.$(OBJ) dscutil.$(OBJ)
 
@@ -61,5 +61,5 @@
 	-$(RM) epstool
 
 install: epstool
-	cp epstool $(BINDIR)
-	chmod 755 $(BINDIR)/epstool
+	${BSD_INSTALL_PROGRAM} epstool $(BINDIR)
+
