summaryrefslogtreecommitdiff
path: root/net/dnscap/patches/patch-Makefile.in
blob: 1f160eb28b8820df04720c2761d3070b14e2f795 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
$NetBSD: patch-Makefile.in,v 1.2 2017/08/08 17:13:34 jlam Exp $

DESTDIR
don't rename old binaries
install man page into correct directory

--- Makefile.in	2011/12/07 20:36:41	1.1
+++ Makefile.in	2011/12/07 20:37:44
@@ -45,11 +45,9 @@
 all: ${prog} ${prog}.cat1
 
 install: all
-	mkdir -p ${bindir} ${mandir}
-	if [ -f ${bindir}/${prog} ]; then \
-		mv -f ${bindir}/${prog} ${bindir}/${prog}.old; fi
-	cp ${prog} ${bindir}
-	cp ${prog}.cat1 /usr/local/man/cat1/${prog}.1
+	mkdir -p ${DESTDIR}${bindir} ${DESTDIR}${mandir}/man1
+	cp ${prog} ${DESTDIR}${bindir}
+	cp ${prog}.1 ${DESTDIR}${mandir}/man1/${prog}.1
 
 .c.o:
 	${CC} ${CFLAGS} -c $<