$NetBSD: patch-aa,v 1.1.1.1 2001/05/31 10:54:21 agc Exp $

--- Makefile.orig	Tue Jan 31 21:15:22 1995
+++ Makefile
@@ -68,12 +68,15 @@
 # [13-Sep-1993]
 #=======================================================================
 
-DEST		= /usr/local
+DEST		= $(PREFIX)
 
 BINDIR		= $(DEST)/bin
 
 CATDIR		= $(DEST)/man/cat1
 
+INSTALL_PROGRAM = $(BSD_INSTALL_PROGRAM)
+INSTALL_MAN     = $(BSD_INSTALL_MAN)
+
 # Compilation with a C++ compiler is preferable.  SunOS 4.1 CC cannot be
 # used, however, because of its erroneous function prototypes in stdlib.h
 # which use char* instead of void* in many places.  There is no such
@@ -243,16 +246,10 @@
 	-$(RM) TAGS
 
 install:	bibindex biblook
-	-$(CP) bibindex $(BINDIR)
-	-$(STRIP) $(BINDIR)/bibindex
-	-chmod 775 $(BINDIR)/bibindex
-	-$(CP) biblook $(BINDIR)
-	-$(STRIP) $(BINDIR)/biblook
-	-chmod 775 $(BINDIR)/biblook
-	-$(CP) bibindex.man $(MANDIR)/bibindex.$(MANEXT)
-	-chmod 774 $(MANDIR)/bibindex.$(MANEXT)
-	-$(CP) biblook.man $(MANDIR)/biblook.$(MANEXT)
-	-chmod 774 $(MANDIR)/biblook.$(MANEXT)
+	$(INSTALL_PROGRAM) bibindex $(BINDIR)
+	$(INSTALL_PROGRAM) biblook $(BINDIR)
+	$(INSTALL_MAN) bibindex.man $(MANDIR)/bibindex.$(MANEXT)
+	$(INSTALL_MAN) biblook.man $(MANDIR)/biblook.$(MANEXT)
 
 install-ftp:	$(FTPFILES)
 	-for f in $? ; \
