Dmitry Goncharov (17 October 2021 18:33) wrote:
> i think, make should not print a warning when a .d file is missing. make
> should proceed and create the missing file. However, when .d is present, but
> make cannot include it, then make should print an error and stop.

Given that I always generated .d files as side-effects of generating .o
files, a missing .d file always meant the .o was missing, so my make
files didn't need to know what the .o file depended on, aside from its
primary source file, so I just used

include $(wildcard $(OBJECTS:%.o=%.d))

Surely that would solve your problem, without invasive surgery in GNU
make, or special-case handling of .d files anywhere but your make file ?

        Eddy.

  • [bug #61226] ... Paul D. Smith
    • [bug #61... Dmitry Goncharov
      • [bug... Dmitry Goncharov
      • [bug... Dmitry Goncharov
      • [bug... Paul D. Smith
      • [bug... Dmitry Goncharov
      • Re: ... Britton Kerin
      • Re: ... Dmitry Goncharov via Bug reports and discussion for GNU make
      • Re: ... Britton Kerin
      • Re: ... Dmitry Goncharov via Bug reports and discussion for GNU make
      • Re: ... Edward Welbourne
      • Re: ... Paul Smith
      • Re: ... Alejandro Colomar (man-pages)
      • Re: ... Dmitry Goncharov via Bug reports and discussion for GNU make
      • Re: ... Paul Smith
      • Re: ... Alejandro Colomar (man-pages)
      • Re: ... Alejandro Colomar (man-pages)
      • Re: ... Dmitry Goncharov via Bug reports and discussion for GNU make
      • Re: ... Dmitry Goncharov via Bug reports and discussion for GNU make
      • [bug... Paul D. Smith
      • [bug... Paul D. Smith

Reply via email to