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: Sun, 26 Sep 2021 12:49:48 -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 #2, bug #61226 (project make):

Hm.  I'm not a fan of this solution.  I really don't like having make do
different things depending on the content of recipes, even empty vs. not
empty.

Additionally, this is just a special case; it could be the case that we need
to actually have some recipe invoked, but then the recipe decides that there
is nothing to do for some reason and doesn't create the file.  One simple
example is that some makefiles use the shell no-op target ":" rather than an
empty recipe, just to be more clear about what's happening; like this:


hello.d: ; @:


If we don't consider, for the moment, backward compatibility, would it be more
correct and work properly to suggest that people should use -include in
situations where they don't want an error if the included file is not actually
rebuilt?


hello.o: hello.d; touch $@ $<
hello.d:;
-include hello.d


Of course even if this is the best answer it's not acceptable from a
backward-compatibility standpoint to break this common usage, at least not
immediately.  I think perhaps at least some of the change in the previous fix
might need to be reverted, although I'm not sure the entire thing needs to be.

    _______________________________________________________

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]