summaryrefslogtreecommitdiff
path: root/devel/electricfence/patches/patch-aa
blob: a0930adeabf465f6894dba517660e3b50239e7be (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
$NetBSD: patch-aa,v 1.2 1998/10/27 11:03:09 agc Exp $

--- Makefile.orig	Fri Jan 20 05:33:04 1995
+++ Makefile	Tue Oct 27 10:55:46 1998
@@ -1,12 +1,11 @@
-ASFLAGS= -mips2
+#ASFLAGS= -mips2
 CC= cc
 AR= ar
-INSTALL= install
 MV= mv
 CHMOD= chmod
 CFLAGS= -g
-LIB_INSTALL_DIR= /usr/lib
-MAN_INSTALL_DIR= /usr/man/man3
+LIB_INSTALL_DIR= ${PREFIX}/lib
+MAN_INSTALL_DIR= ${PREFIX}/man/man3
 
 PACKAGE_SOURCE= README libefence.3 Makefile efence.h \
 	efence.c page.c print.c eftest.c tstheap.c CHANGES
@@ -39,10 +38,9 @@
 	@ echo
 
 install: libefence.a libefence.3
-	$(MV) libefence.a $(LIB_INSTALL_DIR)
-	$(CHMOD) 644 $(LIB_INSTALL_DIR)/libefence.a
-	$(INSTALL) libefence.3 $(MAN_INSTALL_DIR)/libefence.3
-	$(CHMOD) 644 $(MAN_INSTALL_DIR)/libefence.3
+	${INSTALL} -c -m 0644 -o root -g wheel libefence.a $(LIB_INSTALL_DIR)
+	${RANLIB} ${LIB_INSTALL_DIR}/libefence.a
+	${INSTALL} -c -m 0644 -o root -g wheel libefence.3 $(MAN_INSTALL_DIR)/libefence.3
 
 clean:
 	- rm -f $(OBJECTS) tstheap.o eftest.o tstheap eftest libefence.a \