Skip to content

Instantly share code, notes, and snippets.

@o11c
Created August 28, 2013 20:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save o11c/6370791 to your computer and use it in GitHub Desktop.
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
early MFLAGS: -Rr
early MAKEFLAGS: Rr
late MFLAGS: -Rr --jobserver-fds=3,4 -j
late MAKEFLAGS: Rr --jobserver-fds=3,4 -j
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