VirtualBox

source: kBuild/vendor/gnumake/current/tests/scripts/variables/MAKEFLAGS@ 2596

最後變更 在這個檔案從2596是 2596,由 bird 提交於 13 年 前

gnumake/current -> 3.82-cvs.

檔案大小: 984 位元組
 
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;
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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