bug-make
[Top][All Lists]
Advanced

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

[bug #55532] Missing prerequisites are not included in $? if .SECONDARY


From: Paul D. Smith
Subject: [bug #55532] Missing prerequisites are not included in $? if .SECONDARY is present
Date: Sun, 25 Sep 2022 17:56:18 -0400 (EDT)

Update of bug #55532 (project make):

                  Status:                    None => Not A Bug              
             Open/Closed:                    Open => Closed                 

    _______________________________________________________

Follow-up Comment #5:

I've changed my mind: I don't think this is a bug.

The docs for .SECONDARY say:
> [.SECONDARY targets] are treated as intermediate files
which means they are not rebuilt when they are missing.

The docs for $? say it contains:
> The names of all the prerequisites that are newer than the target
In other words, the prerequisites that caused the target to be rebuilt.  If
you don't rebuild the prerequisite, then it's not in $?.  If it's
intermediate, and it has no recipe, then it doesn't cause the target to be
rebuilt (in your example, for instance, if you touch foo so that it's newer
than baz, then the recipe will not be run even though bar is missing).


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?55532>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

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