VirtualBox

source: kBuild/trunk/src/kmk/tests/scripts/features/rule_glob@ 3140

Last change on this file since 3140 was 3140, checked in by bird, 7 years ago

kmk: Merged in changes from GNU make 4.2.1 (2e55f5e4abdc0e38c1d64be703b446695e70b3b6 / https://git.savannah.gnu.org/git/make.git).

  • Property svn:eol-style set to native
File size: 916 bytes
Line 
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;
Note: See TracBrowser for help on using the repository browser.

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