Skip to content

Comment on Makefiles for Web Work (2022)parent

Comments

Your makefile is a mix of 2 slightly different syntaxes. That leads to the kind of confusion like when you write interpolation, is it bash interpolation or make interpolation, and so on.

Make was made for system languages with slow compilation time where avoiding unneccesarily rebuilding and paralellization become crucial features. If you don't utilize or have a need for that then make does not bring anything to the table. If you DO have such need because your project is big now, you prolly also need monorepo workspace management etc, at which point you just use a modern tool like bazel.

Who on earth doesn't want faster builds?

It's make interpolation if it's using Make syntax and shell if it's not. It's not the same syntax

Make doesn't make build faster. Most likely, the bottleneck is the build tool you are calling, not how you call it.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.