[bug #61226] Missing included files that have rules don't show as an error

2022-01-18 Thread Paul D. Smith
Follow-up Comment #11, bug #61226 (project make):

In the abstract, it seems to me that if a user asks to include a file and that
file doesn't exist, that the include should generate some kind of error.

However, maybe you're right that if a rule exists that tells make how to build
that included file we should not generate an error as long as the recipe for
that rule doesn't fail, even if the included file still doesn't exist after
the recipe is run.

I'm still not excited about the idea of distinguishing recipes that are empty,
versus recipes that are not empty but don't update the target file.

___

Reply to this item at:

  

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




[bug #61226] Missing included files that have rules don't show as an error

2022-01-17 Thread Dmitry Goncharov
Follow-up Comment #10, bug #61226 (project make):

[comment #9 comment #9:]
> I will leave this issue open to think about how to best introduce a
backward-incompatible change that might help in this situation.

Do i understand it correctly, that as long as compatibility allows, you'd like
make to fail whenever make cannot include a makefile, as long as the included
makefile has a rule with a recipe, even empty?

i'd like to mention that en empty recipe in a force rule has the benefit of
avoiding a redundant implicit search. This helps performance and makes a
meaningful debug output, because it removes repetitive "Looking for an
implicit rule..." and "No implicit rules found..." for each .d file.
So, i prefer rules like


%.d:;
%.h:;



___

Reply to this item at:

  

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




[bug #61226] Missing included files that have rules don't show as an error

2022-01-17 Thread Paul D. Smith
Update of bug #61226 (project make):

  Item Group: Bug => Enhancement
 Summary: A regression prevents generation of missing included
dependency files. => Missing included files that have rules don't show as an
error


___

Reply to this item at:

  

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