Follow-up Comment #1, bug #66273 (group make): Make incorrectly considers an explicitly mentioned file intermediate when the file is a target of a double colon rule.
$ ls
makefile
$ cat makefile
hello.x:
%.x: %.q; $(info $@ from $<)
hello.q::; touch $@
$ # this is make built from master
$ rm hello.q ; ~/src/gmake/make/m64/make
rm: cannot remove 'hello.q': No such file or directory
touch hello.q
hello.x from hello.q
rm hello.q
Here hello.q is explicitly mentioned and make removes it afterwards.
The patch in the attachment sets is_explicit in the case of double colon rules
and modifies print_file to print whether a file is explicitly mentioned.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?66273>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc
Description: PGP signature
