bug-make
[Top][All Lists]
Advanced

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

[bug #51495] Notice when a rule changed, so target needs rebuilding


From: Nadav Har'El
Subject: [bug #51495] Notice when a rule changed, so target needs rebuilding
Date: Sun, 30 Dec 2018 10:45:43 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:64.0) Gecko/20100101 Firefox/64.0

Follow-up Comment #2, bug #51495 (project make):

Henrik, thanks, this is indeed a nice suggestion, which is indeed a trick
worthy to appear in a make book :-)

It has two problems, though, compared to real built-in support for this
feature:
The first problem is of course unwieldiness - it is harder and uglier to
create a makefile this way (splitting it into many separate makefiles), and
it's easier and more natural to just forget to do it - so most makefiles will
continue not to enjoy this feature.
The second problem is that it doesn't support user-specified parameters. In
your example, imagine that a user runs "make LDFLAGS="-lm -s". link.mk hasn't
changed, so the makefile will not know that the linking stage needs to run
again, even though the rule did change because LDFLAGS changed since the last
run.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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