Created
August 28, 2013 20:26
-
-
Save o11c/6370791 to your computer and use it in GitHub Desktop.
An oddity in GNU Make's definition of the MFLAGS and MAKEFLAGS variables
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
early MFLAGS: -Rr | |
early MAKEFLAGS: Rr | |
late MFLAGS: -Rr --jobserver-fds=3,4 -j | |
late MAKEFLAGS: Rr --jobserver-fds=3,4 -j |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
f := $(MFLAGS) | |
z := $(MAKEFLAGS) | |
all: | |
@echo early MFLAGS: $f | |
@echo early MAKEFLAGS: $z | |
@echo late MFLAGS: ${MFLAGS} | |
@echo late MAKEFLAGS: ${MAKEFLAGS} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment