mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
make: enable SECONDEXPANSION for module/application builds
This commit is contained in:
parent
57e791fcc9
commit
1ca277d914
@ -2,6 +2,15 @@ ifeq (, $(__RIOTBUILD_FLAG))
|
||||
$(error You cannot build a module on its own. Use "make" in your application's directory instead.)
|
||||
endif
|
||||
|
||||
#
|
||||
# enable second expansion of prerequisites.
|
||||
#
|
||||
# Doing that here enables it globally for all modules and the application.
|
||||
#
|
||||
# See https://www.gnu.org/software/make/manual/html_node/Secondary-Expansion.html
|
||||
# for what it can be used for.
|
||||
.SECONDEXPANSION:
|
||||
|
||||
unexport DIRS
|
||||
DIRS := $(sort $(abspath $(DIRS)))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user