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

2019-03-08 Thread Masahiro Yamada
Follow-up Comment #4, bug #51495 (project make): I have not read "GNU Make Book". Anyway, IIRC, the document of ninja-build mentioned it had borrowed the idea from Linux Kernel build system. Linux kernel build system works with GNU Make, and achieved the similar feature by meta-programming.

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

2019-03-08 Thread анонимный
Follow-up Comment #3, bug #51495 (project make): FYI, an advanced trick to support automatic rebuilding when a rule is changed is explained in the "GNU Make Book" by John Graham-Cumming, Chapter 3. So it's possible to emulate this functionality with some effort in Make's metaprogramming.

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

2018-12-30 Thread Nadav Har'El
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

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

2017-07-19 Thread Kyle Rose
True enough, as far as it goes. A real solution to this would have to be combined with a move away from mtime as the only mechanism for signaling freshness of a target. (A solution involving only recipe comparison would also have to know to touch the target.) Kyle On Tue, Jul 18, 2017 at 5:42

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

2017-07-18 Thread David Boyce
Someone needs to point out that this is entirely solvable within gnu make. Many recipes have been published; one is at https://www.cmcrossroads.com/article/rebuilding-when-cppflags-changes. The Linux kernel makefile structure has a nice implementation of this too. It might still be preferable for

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

2017-07-18 Thread Kyle Rose
On Tue, Jul 18, 2017 at 4:00 PM, Edward Welbourne wrote: > Henrik Carlqvist (18 July 2017 15:46) > > The quick and easy way to accomplish this today is of course to also > > add the Makefile to the prerequisites of targets. If you don't want > > every target to be rebuilt

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

2017-07-18 Thread Edward Welbourne
Henrik Carlqvist (18 July 2017 15:46) > The quick and easy way to accomplish this today is of course to also > add the Makefile to the prerequisites of targets. If you don't want > every target to be rebuilt when only one rule has changed it is also > possible to split the Makefile up into several

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

2017-07-18 Thread Henrik Carlqvist
Follow-up Comment #1, bug #51495 (project make): The quick and easy way to accomplish this today is of course to also add the Makefile to the prerequisites of targets. If you don't want every target to be rebuilt when only one rule has changed it is also possible to split the Makefile up into

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

2017-07-18 Thread Nadav Har'El
URL: Summary: Notice when a rule changed, so target needs rebuilding Project: make Submitted by: nyh Submitted on: Tue 18 Jul 2017 07:07:31 AM UTC Severity: 3 - Normal