[bug #59490] target may not be remade if prerequisite has no recipe

2020-11-20 Thread Paul D. Smith
Follow-up Comment #3, bug #59490 (project make): Your attached makefile shows the issue you're trying to get at, but the example in your question is incomplete: it's missing the fact that (a) you run "make d1" and (b) the file "c1" must already exist before the makefile runs. If "c1" doesn't

[bug #59490] target may not be remade if prerequisite has no recipe

2020-11-20 Thread Dmitry Goncharov
Follow-up Comment #2, bug #59490 (project make): Greg, you observe the effect of make fs cache. In order to avoid this effect you need to tell make explicitly that c1 is to be rebuilt when b1 changes. e.g. b1: a1 touch b1 c1: b1 touch c1 d1: c1 touch d1

[bug #59490] target may not be remade if prerequisite has no recipe

2020-11-20 Thread Greg Minshall
Follow-up Comment #1, bug #59490 (project make): though maybe it's not so simple? e.g., if b is remade, but c doesn't change, then probably d shouldn't change. i guess my naive hope/expectation is that b will be remade, then c's date/time will be compared with that of d to decided if d should