Hi there,

attached is a patch to make sure that:

$ make install DESTDIR=/path/to/destdir

actually works.

-- Jeroen
>From e745afac2542e3d29d1b40bf9423bbac0b45bc2d Mon Sep 17 00:00:00 2001
From: Jeroen van Meeuwen (Fedora Unity) <kana...@fedoraunity.org>
Date: Mon, 28 Dec 2009 01:11:27 +0100
Subject: [PATCH] Make sure make install DESTDIR=/path/to actually works

---
 Makefile |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/Makefile b/Makefile
index 9dd62d2..929af78 100644
--- a/Makefile
+++ b/Makefile
@@ -81,11 +81,11 @@ $(TARGETNAME):
 -include $(patsubst %.c, $(TARGETNAME)/.%.dep, $(SRCS))
 
 install:
-	mkdir -p $(INCLUDEDIR)
-	cp $(LIBNAME) $(LIBDIR)
-	cp $(HEADERNAME) $(INCLUDEDIR)
-	cp $(PCNAME) $(PKGCONFIGDIR)
+	mkdir -p $(DESTDIR)/$(INCLUDEDIR)
+	cp $(LIBNAME) $(DESTDIR)/$(LIBDIR)
+	cp $(HEADERNAME) $(DESTDIR)/$(INCLUDEDIR)
+	cp $(PCNAME) $(DESTDIR)/$(PKGCONFIGDIR)
 uninstall:
-	rm -f  $(LIBDIR)/$(LIBNAME)
-	rm -f $(INCLUDEDIR)/$(HEADERNAME)
-	rm -f $(PKGCONFIGDIR)/$(PCNAME)
+	rm -f $(DESTDIR)/$(LIBDIR)/$(LIBNAME)
+	rm -f $(DESTDIR)/$(INCLUDEDIR)/$(HEADERNAME)
+	rm -f $(DESTDIR)/$(PKGCONFIGDIR)/$(PCNAME)
-- 
1.6.5.2

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Spice-space-devel mailing list
Spice-space-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/spice-space-devel

Reply via email to