top | item 39758681

(no title)

Darkstryder | 1 year 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

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.

discuss

order

gavinhoward|1 year ago

Author here.

I mentioned suffix rules and pattern rules.

Unfortunately, meta build systems don't like to generate rules like that.