Skip to content

Commit

Permalink
sys/Makefile: build all sys modules with nonrecursive makefiles
Browse files Browse the repository at this point in the history
  • Loading branch information
cladmi committed Oct 4, 2017
1 parent b60a1b9 commit 5be913e
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions sys/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
OLD_NONRECURSIVE := $(NONRECURSIVE)
NONRECURSIVE = 1
# First include for current module (should be done before any 'include')
include $(RIOTBASE)/Makefile.base

# Then take care of other modules

include Makefile.modules
include $(wildcard */Makefile.modules)
include $(wildcard */*/Makefile.modules)

DIRS += $(foreach module, $(USEMODULE), $(MODULE_DIR_$(module)))

include $(RIOTBASE)/Makefile.base
MAKEFILE_DIRS = $(sort $(foreach module, $(USEMODULE), $(MODULE_DIR_$(module))))
include $(MAKEFILE_DIRS:%=%/Makefile)
NONRECURSIVE := $(OLD_NONRECURSIVE)

0 comments on commit 5be913e

Please sign in to comment.