Add includes for DESTDIR only in root Makefile

Signed-off-by: Jason Zaman <jason@perfinion.com>
This commit is contained in:
Jason Zaman 2017-04-25 01:59:58 +08:00 committed by Stephen Smalley
parent 74093beab0
commit 9a7763e186

View File

@ -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; \