From 91d84b09f3b470e53e80e3cef54dc05120126ba9 Mon Sep 17 00:00:00 2001 From: Oleg Hahm Date: Tue, 22 Mar 2016 16:02:51 +0100 Subject: [PATCH] make: also add pkg include paths --- Makefile.include | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile.include b/Makefile.include index 6584158c4..662662e5b 100644 --- a/Makefile.include +++ b/Makefile.include @@ -278,10 +278,6 @@ export USEMODULE_INCLUDES = include $(RIOTBASE)/sys/Makefile.include include $(RIOTBASE)/drivers/Makefile.include -USEMODULE_INCLUDES_ = $(shell echo $(USEMODULE_INCLUDES) | tr ' ' '\n' | awk '!a[$$0]++' | tr '\n' ' ') - -INCLUDES += $(USEMODULE_INCLUDES_:%=-I%) - # The `clean` needs to be serialized before everything else. ifneq (, $(filter clean, $(MAKECMDGOALS))) all $(BASELIBS) $(USEPKG:%=$(RIOTPKG)/%/Makefile.include): clean @@ -294,6 +290,10 @@ $(RIOTPKG)/%/Makefile.include:: .PHONY: $(USEPKG:%=$(RIOTPKG)/%/Makefile.include) -include $(USEPKG:%=$(RIOTPKG)/%/Makefile.include) +USEMODULE_INCLUDES_ = $(shell echo $(USEMODULE_INCLUDES) | tr ' ' '\n' | awk '!a[$$0]++' | tr '\n' ' ') + +INCLUDES += $(USEMODULE_INCLUDES_:%=-I%) + .PHONY: $(USEPKG:%=${BINDIR}%.a) $(USEPKG:%=${BINDIR}%.a): @mkdir -p ${BINDIR}