mirror of
https://github.com/mirror/make.git
synced 2025-01-03 00:40:34 +08:00
* tests/scripts/features/statipattrules: [SV 17374] Add test
Verify that double-colon static pattern rules work.
This commit is contained in:
parent
fabb03eac4
commit
d12ff78cb2
@ -138,9 +138,20 @@ hello.z: %.z: %.x ; @echo $@
|
|||||||
unrelated: hello.x
|
unrelated: hello.x
|
||||||
!, '', "hello.z\n");
|
!, '', "hello.z\n");
|
||||||
|
|
||||||
|
|
||||||
unlink('hello.z');
|
unlink('hello.z');
|
||||||
|
|
||||||
|
# sv 17374 Ensure double-colon static pattern rules work
|
||||||
|
|
||||||
|
touch(qw(a.src b.src));
|
||||||
|
|
||||||
|
run_make_test(q!
|
||||||
|
all: a.tgt b.tgt
|
||||||
|
a.tgt b.tgt:: %.tgt : %.src ; cp $< $@
|
||||||
|
!,
|
||||||
|
'', "cp a.src a.tgt\ncp b.src b.tgt\n");
|
||||||
|
|
||||||
|
unlink(qw(a.src b.src a.tgt b.tgt));
|
||||||
|
|
||||||
my @dir = ('', 'lib/'); # With and without last slash.
|
my @dir = ('', 'lib/'); # With and without last slash.
|
||||||
my @secondexpansion = ('', '.SECONDEXPANSION:');
|
my @secondexpansion = ('', '.SECONDEXPANSION:');
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user