]> git.ipfire.org Git - thirdparty/make.git/commitdiff
* tests/scripts/targets/INTERMEDIATE: [SV 60188] Add one more test
authorDmitry Goncharov <dgoncharov@users.sf.net>
Sun, 30 May 2021 17:58:50 +0000 (13:58 -0400)
committerPaul Smith <psmith@gnu.org>
Sun, 30 May 2021 19:11:14 +0000 (15:11 -0400)
tests/scripts/targets/INTERMEDIATE

index 512498c3093e8ccc8609ccda4a246a1dfef0ff10..e25a6135ee03d614224898204de0d33464a11b6d 100644 (file)
@@ -104,5 +104,21 @@ $answer = "touch foo.a\ntouch foo\nrm foo.a\n";
 
 unlink('foo');
 
+# sv 60188.
+# A file made by an implicit rule, but explicitly mentioned by the user, is
+# still considered intermediate if it's a prereq to .INTERMEDIATE.
+
+touch('hello.z');
+unlink('test.x');
+
+run_make_test(q!
+all: hello.z
+%.z: test.x; touch $@
+%.x: ;
+.INTERMEDIATE: test.x
+!, '', "#MAKE#: Nothing to be done for 'all'.\n");
+
+unlink('hello.z');
+
 # This tells the test driver that the perl test script executed properly.
 1;