bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why is $? affected by .SECONDARY ?


From: Masahiro Yamada
Subject: Re: Why is $? affected by .SECONDARY ?
Date: Mon, 21 Jan 2019 10:52:51 +0900

Hi Paul,

On Mon, Jan 21, 2019 at 7:45 AM Paul Smith <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]