File: 0001-Add-DESTDIR-support-to-Makefile.patch

package info (click to toggle)
lacheck 1.26-17.2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 396 kB
  • sloc: makefile: 358
file content (23 lines) | stat: -rw-r--r-- 681 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From: "Davide G. M. Salvetti" <salve@debian.org>
Date: Mon, 30 Aug 2010 18:24:40 +0200
Subject: Add DESTDIR support to Makefile.

---
 Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index a7e2b5a..71a2619 100644
--- a/Makefile
+++ b/Makefile
@@ -68,8 +68,8 @@ check:		test.new
 	-diff $(srcdir)/test.old $(srcdir)/test.new
 
 install: 	$(LACHECK) lacheck.1
-	cp $(srcdir)/$(LACHECK) $(bindir)
-	cp $(srcdir)/lacheck.1 $(mandir)/lacheck$(manext) 
+	cp $(srcdir)/$(LACHECK) $(DESTDIR)$(bindir)
+	cp $(srcdir)/lacheck.1 $(DESTDIR)$(mandir)/lacheck$(manext) 
 
 uninstall:
 	-rm -f $(bindir)/$(LACHECK) $(mandir)/lacheck$(manext)