mirror of
https://git.savannah.gnu.org/git/make.git
synced 2024-12-25 05:29:46 +00:00
* tests/scripts/targets/INTERMEDIATE: [SV 60188] Add one more test
This commit is contained in:
parent
012918bf11
commit
297cb5adb7
1 changed files with 16 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue