VirtualBox

source: kBuild/vendor/gnumake/current/tests/scripts/features/rule_glob@ 3208

最後變更 在這個檔案從3208是 3138,由 bird 提交於 7 年 前

Imported make 4.2.1 (2e55f5e4abdc0e38c1d64be703b446695e70b3b6) from https://git.savannah.gnu.org/git/make.git.

  • 屬性 svn:eol-style 設為 native
檔案大小: 916 位元組
 
1# -*-perl-*-
2
3$description = "Test globbing in targets and prerequisites.";
4
5$details = "";
6
7touch(qw(a.one a.two a.three));
8
9# Test wildcards in regular targets and prerequisites
10run_make_test(q{
11.PHONY: all a.one a.two a.three
12all: a.one* a.t[a-z0-9]o a.th[!q]ee
13a.o[Nn][Ee] a.t*: ; @echo $@
14},
15 '', "a.one\na.two\na.three");
16
17# Test wildcards in pattern targets and prerequisites
18run_make_test(q{
19.PHONY: all
20all: a.four
21%.four : %.t* ; @echo $@: $(sort $^)
22},
23 '', "a.four: a.three a.two");
24
25# Test wildcards in second expansion targets and prerequisites
26run_make_test(q{
27.PHONY: all
28all: a.four
29.SECONDEXPANSION:
30%.four : $$(sort %.t*) ; @echo $@: $(sort $^)
31},
32 '', "a.four: a.three a.two");
33
34unlink(qw(a.one a.two a.three));
35
36# This tells the test driver that the perl test script executed properly.
371;
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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