1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-27 07:21:18 +01:00

Makefile: enable SECONDEXPANSION globally for modules and applications

This commit is contained in:
Francisco Molina 2021-03-16 11:21:07 +01:00
parent e768a85f62
commit 19ae0d746a
No known key found for this signature in database
GPG Key ID: 3E94EAC3DBDEEDA8
2 changed files with 10 additions and 1 deletions

View File

@ -5,7 +5,7 @@ endif
#
# enable second expansion of prerequisites.
#
# Doing that here enables it globally for all modules and the application.
# Doing that here enables it globally for all modules
#
# See https://www.gnu.org/software/make/manual/html_node/Secondary-Expansion.html
# for what it can be used for.

View File

@ -8,6 +8,15 @@ ifeq (,$(filter $(MATCH_MAKE_VERSION),$(MAKE_VERSION)))
$(MATCH_MAKE_VERSION) or later.)
endif
#
# enable second expansion of prerequisites.
#
# Doing that here enables it globally for all applications.
#
# See https://www.gnu.org/software/make/manual/html_node/Secondary-Expansion.html
# for what it can be used for.
.SECONDEXPANSION:
# Will evaluate to the absolute path of the Makefile it's evaluated in.¹
#
# This variable MUST be immediately evaluated (tmp_var := $(LAST_MAKEFILEDIR))