Hi Paul, On Mon, Jan 21, 2019 at 7:45 AM Paul Smith <psm...@gnu.org> wrote: > > 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/
OK, I submitted 55532. https://savannah.gnu.org/bugs/index.php?55532 While you are looking at the .SECONDARY, could you consider 55533 ? https://savannah.gnu.org/bugs/index.php?55533 I fixed abuses of .PRECIOUS in Linux kernel makefiles in the past, I am still wondering why .SECONDARY does not work with % pattern. -- Best Regards Masahiro Yamada _______________________________________________ Bug-make mailing list Bug-make@gnu.org https://lists.gnu.org/mailman/listinfo/bug-make