On Sun, 2019-01-13 at 11:19 +0900, Masahiro Yamada wrote:
> [Test Code 2]
> ------------------>8---------------
> foo: bar FORCE
>         @echo newer prerequisites are: $?
> bar:
> .PHONY: FORCE
> .SECONDARY:
> ------------------>8---------------
> 
>  Result:
> 
> $ touch foo; make
> newer prerequisites are:
> 
> Oh.
> $? does not include 'bar' and 'FORCE' any more
> despite they do not exist.

This certainly seems like a bug to me.  At least I can't think of any
reason why it would be the case.

IMO .SECONDARY has always been iffy.  The way it works and the side-
effects it has are odd; in my opinion it shouldn't exist in the first
place.  I'd have to examine exactly why it has this behavior before I
can say whether it really has any value or is a pure bug.

You can file an issue on Savannah about this:
https://savannah.gnu.org/projects/make/


_______________________________________________
Bug-make mailing list
Bug-make@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-make

Reply via email to