7 ms·
> Say you add a new source file. Wouldn’t it be great if your build system just picked it up? > Alas, it cannot; the list of stuff to build is passed from the
by Darkstryder 2y ago
> Say you add a new source file. Wouldn’t it be great if your build system just picked it up?
> Alas, it cannot; the list of stuff to build is passed from the meta build system to the build system, usually by fiat.
It can, actually. At least for make. Just use a wildcard in uour rules: https://www.gnu.org/software/make/manual/make.html#Wildcards https://www.gnu.org/software/make/manual/make.html#Wildcards
I highly recommend going through the make documentation at least once in your career. Per the lindy effect, as it has been around for 40 years, it has a decent chance of sticking around for another 40.
- gavinhoward 2y agoAuthor here. I mentioned suffix rules and pattern rules. Unfortunately, meta build systems don't like to generate rules like that.
- kjkjadksj 2y agoIf the lindy effect were real we’d all be romans still
- shrimp_emoji 2y agoIt worked on these guys: https://en.wikipedia.org/wiki/Sultanate_of_Rum https://en.wikipedia.org/wiki/Sultanate_of_Rum