Skip to content

Commit

Permalink
Add includes for DESTDIR only in root Makefile
Browse files Browse the repository at this point in the history
Signed-off-by: Jason Zaman <[email protected]>
  • Loading branch information
perfinion authored and stephensmalley committed Apr 25, 2017
1 parent a4af04c commit 2431fca
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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; \
Expand Down

0 comments on commit 2431fca

Please sign in to comment.