summaryrefslogtreecommitdiff
path: root/textproc/biblook/patches/patch-aa
blob: 7dfe23fa1e5331481b8a731009cf580f2a9a66f9 (plain)
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
$NetBSD: patch-aa,v 1.3 2008/06/20 01:09:37 joerg Exp $

--- Makefile.orig	1995-01-31 12:15:22.000000000 -0800
+++ Makefile	2005-10-04 14:26:20.000000000 -0700
@@ -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
@@ -148,7 +151,7 @@
 LIBS		= /usr/lib/debug/malloc.o
 LIBS		=
 
-MANDIR		= $(DEST)/man/man1
+MANDIR		?= $(DEST)/man/man1
 
 MANEXT		= 1
 
@@ -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 ${DESTDIR}$(BINDIR)
+	$(INSTALL_PROGRAM) biblook ${DESTDIR}$(BINDIR)
+	$(INSTALL_MAN) bibindex.man ${DESTDIR}$(MANDIR)/bibindex.$(MANEXT)
+	$(INSTALL_MAN) biblook.man ${DESTDIR}$(MANDIR)/biblook.$(MANEXT)
 
 install-ftp:	$(FTPFILES)
 	-for f in $? ; \