summaryrefslogtreecommitdiff
blob: 19c2ab71e9fc5f3334a93aa551a2b8524942937a (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
--- makefile.boot.in.old	2006-10-07 12:49:12.000000000 +0200
+++ makefile.boot.in	2006-10-07 13:42:22.000000000 +0200
@@ -6,6 +6,7 @@
 #
 prefix=@prefix@
 srcdir=@srcdir@
+mandir=@mandir@
 VPATH=.:$(srcdir)
 CC=@CC@
 INSTALL=$(srcdir)/install-sh
@@ -48,12 +49,12 @@
 install:	install-bin install-man install-mk
 
 install-bin:
-	test -d ${prefix}/bin || ${INSTALL} -m 755 -d ${prefix}/bin
-	${INSTALL} -m 755 bmake ${prefix}/bin
+	test -d ${DESTDIR}${prefix}/bin || ${INSTALL} -m 755 -d ${DESTDIR}${prefix}/bin
+	${INSTALL} -m 755 ${srcdir}/bmake ${DESTDIR}${prefix}/bin
 
 install-man:
-	test -d ${prefix}/man/cat1 || ${INSTALL} -m 755 -d ${prefix}/man/cat1
-	${INSTALL} -m 444 ${srcdir}/bmake.cat1 ${prefix}/man/cat1/bmake.1
+	test -d ${DESTDIR}${mandir}/man1 || ${INSTALL} -m 755 -d ${DESTDIR}${mandir}/man1
+	${INSTALL} -m 444 ${srcdir}/bmake.cat1 ${DESTDIR}${mandir}/man1/bmake.1
 
 install-mk:
 	@if test -s ${MKSRC}/install-mk; then \