[dev] Automatic C header dependency tracking for the redo build-system

From: Thomas Oltmann <thomas.oltmann.hhg_AT_gmail.com>
Date: Tue, 7 Sep 2021 19:50:35 +0200

Hi everybody!

redo is a pretty well-designed family of build-systems
that enjoys a certain popularity among people on this mailing list.

Its recursive nature makes it well-suited to projects comprising a
large amount of files.
However, unlike comparable build-systems like make or tup, it lacks provisions
to automatically track C #include dependencies, which is sorely needed
for projects
with many source files.

To overcome this, I wrote a simple companion tool that integrates
fairly seamlessly with redo.
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
It should work with pretty much any redo implementation
(other than maybe apenwarr's *minimal do*, because that one doesn't implement
'redo-ifchange' as a separate executable).

You can find it here: https://github.com/tomolt/redo-depfile
Any feedback is appreciated.

          Thomas Oltmann

P.S.: My sincere apologies if this post if considered off-topic, as
redo is not under the suckless banner.
I considered posting on the redo mailing-list instead, but that one
seems very obscure and inactive,
plus I recognize some of the posters there as being regulars on the
suckless mailing lists as well.
Received on Tue Sep 07 2021 - 19:50:35 CEST

This archive was generated by hypermail 2.3.0 : Tue Sep 07 2021 - 20:00:07 CEST