VirtualBox

source: kBuild/vendor/gnumake/3.82/tests/scripts/variables/MAKEFLAGS@ 2579

Last change on this file since 2579 was 2579, checked in by bird, 13 years ago

Importing make-3.82.tar.bz2 (md5sum 1a11100f3c63fcf5753818e59d63088f) with --auto-props but no keywords.

File size: 984 bytes
Line 
1# -*-perl-*-
2
3$description = "Test proper behavior of MAKEFLAGS";
4
5$details = "DETAILS";
6
7# Normal flags aren't prefixed with "-"
8run_make_test(q!
9all: ; @echo $(MAKEFLAGS)
10!,
11 '-e -r -R', 'Rre');
12
13# Long arguments mean everything is prefixed with "-"
14run_make_test(q!
15all: ; @echo $(MAKEFLAGS)
16!,
17 '--no-print-directory -e -r -R', '--no-print-directory -Rre');
18
19
20if ($all_tests) {
21 # Recursive invocations of make should accumulate MAKEFLAGS values.
22 # Savannah bug #2216
23 run_make_test(q!
24MSG = Fails
25all:
26 @echo '$@: MAKEFLAGS=$(MAKEFLAGS)'
27 @MSG=Works $(MAKE) -e -f #MAKEFILE# jump
28jump:
29 @echo '$@: MAKEFLAGS=$(MAKEFLAGS)'
30 @$(MAKE) -f #MAKEFILE# print
31print:
32 @echo '$@: MAKEFLAGS=$(MAKEFLAGS)'
33 @echo $(MSG)
34.PHONY: all jump print
35!,
36 '--no-print-directory',
37 'all: MAKEFLAGS= --no-print-directory
38jump: MAKEFLAGS= --no-print-directory -e
39print: MAKEFLAGS= --no-print-directory -e
40Works');
41}
42
431;
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette