summaryrefslogtreecommitdiffstats
path: root/patches/pnputils-0.1/pnputils-0.1-destdir.diff
blob: c7e9d5f42215a137262a5c0103d90713cdc65715 (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
Subject: [PATCH] use DESTDIR when installing
From: Michael Olbrich <m.olbrich@pengutronix.de>

Prefix all paths with DESTDIR when installing

Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>

---
 Makefile |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Index: b/Makefile
===================================================================
--- a/Makefile
+++ b/Makefile
@@ -12,9 +12,9 @@ clean:
 	M=`echo $(DATE)`; sed <$< >$@ "s/@TODAY@/$$M/;s/@VERSION@/pnputils-$(VERSION)/;"
 
 install: all
-	install -m 755 lspnp setpnp /sbin
-	install -m 644 lspnp.8 setpnp.8 /usr/share/man/man8
-	install -m 644 pnp.ids /usr/share/misc
+	install -m 755 lspnp setpnp $(DESTDIR)/sbin
+	install -m 644 lspnp.8 setpnp.8 $(DESTDIR)/usr/share/man/man8
+	install -m 644 pnp.ids $(DESTDIR)/usr/share/misc
 
 REL=pnputils-$(VERSION)
 DISTTMP=/tmp/pnputils-dist