aboutsummaryrefslogtreecommitdiff
path: root/network/wvdial/Makefile.diff
blob: 95f7b4a98f94e9949e949c627024bb3b19c9b7e9 (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
--- Makefile.ORIG	2008-05-10 22:59:21.000000000 -0500
+++ Makefile	2008-05-10 23:01:31.000000000 -0500
@@ -35,17 +36,17 @@
 wvdial wvdialconf papchaptest pppmon: wvdial.a
 
 install-bin: all
-	[ -d ${BINDIR}      ] || install -d ${BINDIR}
-	[ -d ${PPPDIR}      ] || install -d ${PPPDIR}
-	install -m 0755 wvdial wvdialconf ${BINDIR}
-	cp ppp.provider ${PPPDIR}/wvdial
-	cp ppp.provider-pipe ${PPPDIR}/wvdial-pipe
+	[ -d $(DESTDIR)/${BINDIR}      ] || install -d $(DESTDIR)/${BINDIR}
+	[ -d $(DESTDIR)/${PPPDIR}      ] || install -d $(DESTDIR)/${PPPDIR}
+	install -m 0755 wvdial wvdialconf $(DESTDIR)/${BINDIR}
+	cp ppp.provider $(DESTDIR)/${PPPDIR}/wvdial
+	cp ppp.provider-pipe $(DESTDIR)/${PPPDIR}/wvdial-pipe
 
 install-man:
-	[ -d ${MANDIR}/man1 ] || install -d ${MANDIR}/man1
-	[ -d ${MANDIR}/man5 ] || install -d ${MANDIR}/man5
-	install -m 0644 wvdial.1 wvdialconf.1 ${MANDIR}/man1
-	install -m 0644 wvdial.conf.5 ${MANDIR}/man5
+	[ -d $(DESTDIR)/${MANDIR}/man1 ] || install -d $(DESTDIR)/${MANDIR}/man1
+	[ -d $(DESTDIR)/${MANDIR}/man5 ] || install -d $(DESTDIR)/${MANDIR}/man5
+	install -m 0644 wvdial.1 wvdialconf.1 $(DESTDIR)/${MANDIR}/man1
+	install -m 0644 wvdial.conf.5 $(DESTDIR)/${MANDIR}/man5
 
 install: install-bin install-man