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