Greetings!

*** Thomas Oltmann [2021-09-07 19:50]:
>This tool is able to parse the dependency-only Makefiles that modern C
>compilers can
>produce during compilation, and feed these dependencies into redo (via
>'redo-ifchange').

Just out of curiosity, why POSIX shell abilities are not enough for that task?

    read D < "$2".d
    redo-ifchange ${D#* }

POSIX "read" out-of-box understands \-newlines that can appear in those
.d-Makefiles and read the whole .d file as a single line, where you just
have to strip the first word ("target:").

-- 
Sergey Matveev (http://www.stargrave.org/)
OpenPGP: CF60 E89A 5923 1E76 E263  6422 AE1A 8109 E498 57EF

Reply via email to