Home | History | Annotate | Line # | Download | only in unit-tests
varname-dot-makeflags.mk revision 1.1
      1  1.1  rillig # $NetBSD: varname-dot-makeflags.mk,v 1.1 2020/12/01 20:37:30 rillig Exp $
      2  1.1  rillig #
      3  1.1  rillig # Tests for the special .MAKEFLAGS variable, which collects almost all
      4  1.1  rillig # command line arguments and passes them on to any child processes via
      5  1.1  rillig # the environment variable MAKEFLAGS (without leading '.').
      6  1.1  rillig 
      7  1.1  rillig # When options are parsed, the option and its argument are appended as
      8  1.1  rillig # separate words to .MAKEFLAGS.  Special characters in the option argument
      9  1.1  rillig # are not quoted though.  It seems to have not been necessary at least from
     10  1.1  rillig # 1993 until 2020.
     11  1.1  rillig .MAKEFLAGS: -d00000 -D"VARNAME WITH SPACES"
     12  1.1  rillig 
     13  1.1  rillig all:
     14  1.1  rillig 	echo "$$MAKEFLAGS"
     15  1.1  rillig 	@:;
     16