bug-make
[Top][All Lists]
Advanced

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

[bug #61226] A regression prevents generation of missing included depend


From: Paul D. Smith
Subject: [bug #61226] A regression prevents generation of missing included dependency files.
Date: Sat, 2 Oct 2021 15:11:20 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.82 Safari/537.36

Follow-up Comment #4, bug #61226 (project make):

When you say the special behavior do you mean the section "Rules without
Recipes or Prerequisites"?

I think that text is a little misleading.  There's actually nothing magical
about having no recipe or an empty recipe here, as best as I can remember. 
Make doesn't check for this.  Even if you provide a recipe for a force target
it will still behave the same as it would without a recipe, as long as the
recipe doesn't actually create the force target.

So, I think the change to fail includes if the target doesn't actually build
them, only if it has a recipe, is too large of a backward-compatibility break
to consider for now.

My current thinking on this is we should revert this part of the fix, but
leave the original part.  Maybe the thing to do is, if we detect this
situation we can emit a warning message that users should change their
makefiles to use "-include" instead of "include" which would avoid that
warning.  Then in a few releases we could put back this change where make
would fail if included files weren't built.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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