Follow-up Comment #6, bug #66011 (group make):

Yes; if you structure your makefile pattern rules as Dmitry suggests (which is
definitely the right way to do it: you really don't want to add "extra"
prerequisites to a pattern rule beyond only the exact prerequisite that its
built from, such as the .c file, since any missing prereqs cause the rule to
not match) and put the "extra" prerequisites in a separate rule, then as I
said it will still fail, but you'll get a more understandable error message.

However, best is to have your makefile be resilient to these kinds of things
automatically so you don't have to worry about any of it.

Consider this method for example:
https://make.mad-scientist.net/papers/advanced-auto-dependency-generation/


    _______________________________________________________

Reply to this item at:

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

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

Attachment: signature.asc
Description: PGP signature

Reply via email to