[nemiver: 44/70] Explicit DESTDIR variable



commit 6a94368e4c639278faf0b5683f2d31227a0d5e55
Author: Luca Bruno <lucab debian org>
Date:   Sat Nov 29 23:13:27 2008 +0100

    Explicit DESTDIR variable

 debian/rules |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/debian/rules b/debian/rules
index ce95390..98fb1f9 100755
--- a/debian/rules
+++ b/debian/rules
@@ -12,6 +12,7 @@ DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
 DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
 
 CFLAGS = -Wall -g
+DESTDIR = $(CURDIR)/debian/nemiver
 
 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
         CFLAGS += -O0
@@ -19,7 +20,6 @@ else
 	CFLAGS += -O2
 endif
 
-
 config.status: $(QUILT_STAMPFN)
 	dh_testdir
 	./configure --host=$(DEB_HOST_GNU_TYPE) \
@@ -51,8 +51,8 @@ install: build
 	dh_testroot
 	dh_clean -k 
 	dh_installdirs
-	$(MAKE) DESTDIR=$(CURDIR)/debian/nemiver install
-	cp $(CURDIR)/debian/nemiver.xpm $(CURDIR)/debian/nemiver/usr/share/pixmaps/
+	$(MAKE) DESTDIR=$(DESTDIR) install
+	cp $(CURDIR)/debian/nemiver.xpm $(DESTDIR)/usr/share/pixmaps/
 
 binary-indep: build install
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]