3 $description = "Test proper behavior of MAKEFLAGS";
7 # Normal flags aren't prefixed with "-"
9 all: ; @echo $(MAKEFLAGS)
13 # Long arguments mean everything is prefixed with "-"
15 all: ; @echo $(MAKEFLAGS)
17 '--no-print-directory -e -r -R', '--no-print-directory -Rre');
21 # Recursive invocations of make should accumulate MAKEFLAGS values.
26 @echo '$@: MAKEFLAGS=$(MAKEFLAGS)'
27 @MSG=Works $(MAKE) -e -f #MAKEFILE# jump
29 @echo '$@: MAKEFLAGS=$(MAKEFLAGS)'
30 @$(MAKE) -f #MAKEFILE# print
32 @echo '$@: MAKEFLAGS=$(MAKEFLAGS)'
34 .PHONY: all jump print
36 '--no-print-directory',
37 'all: MAKEFLAGS= --no-print-directory
38 jump: MAKEFLAGS= --no-print-directory -e
39 print: MAKEFLAGS= --no-print-directory -e