[PATCH 6/7] Add includes for DESTDIR only in root Makefile

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

 



Signed-off-by: Jason Zaman <jason@xxxxxxxxxxxxx>
---
 Makefile | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/Makefile b/Makefile
index 8df4ce3..7701e16 100644
--- a/Makefile
+++ b/Makefile
@@ -8,6 +8,13 @@ ifeq ($(DEBUG),1)
 	export LDFLAGS = -g
 endif
 
+ifneq ($(DESTDIR),)
+	CFLAGS += -I$(DESTDIR)/usr/include
+	LDFLAGS += -L$(DESTDIR)/usr/lib
+	export CFLAGS
+	export LDFLAGS
+endif
+
 all install relabel clean test indent:
 	@for subdir in $(SUBDIRS); do \
 		(cd $$subdir && $(MAKE) $@) || exit 1; \
-- 
2.10.2




[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux