]> git.ipfire.org Git - thirdparty/make.git/commitdiff
* tests/scripts/features/statipattrules: [SV 17374] Add test
authorPaul Smith <psmith@gnu.org>
Tue, 20 Sep 2022 06:18:48 +0000 (02:18 -0400)
committerPaul Smith <psmith@gnu.org>
Tue, 20 Sep 2022 07:55:39 +0000 (03:55 -0400)
Verify that double-colon static pattern rules work.

tests/scripts/features/statipattrules

index ceee0a99c4c59d0f46abd0a5c8a1ca3b670c6e4a..e4e118ef64e15876240e4b797aaa54404ae2bc07 100644 (file)
@@ -138,9 +138,20 @@ hello.z: %.z: %.x ; @echo $@
 unrelated: hello.x
 !, '', "hello.z\n");
 
-
 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 @secondexpansion = ('', '.SECONDEXPANSION:');