Makefiles for web work
rosszurowski.com
Makefiles for web work
1–10 of 58 posts
Re: Makefiles for web work
#2Re: Makefiles for web work
#3Re: Makefiles for web work
#4My blog, for example, has make targets for things like making a production build, publishing, cleaning out generated artifacts, and running a dev build (with drafts) + bringing up the test server.
Last year I wrote a little post about how I also use make + nix-shell to supply dependencies for Makefile tasks without needing to have them on my PATH: https://t-ravis.com/post/nix/nix-make/
Re: Makefiles for web work
#5Just [0] was discussed on HN. I think I'll give that a shot next time I have to write something like this. .PHONY is lame. [0] https://news.ycombinator.com/item?id=34315779
There's some good things about Makefiles, yes, but there's also a lot of weird legacy functionality. Make was meant to create files and directories, and the .PHONY functionality seems to be a workaround added to make it usable as a general-purpose task runner.
Re: Makefiles for web work
#6Re: Makefiles for web work
#7The claim that 157 ms and 126 ms is "shockingly slow" is quite an exaggeration.
Re: Makefiles for web work
#8Re: Makefiles for web work
#9My main problem with make: When you want to write sophisticated build processes, the syntax is bizarre and difficult to work with.
I'm very happy with Make, though I have to agree, the syntax could be better. I don't mind using tabs, but why are spaces not OK as well? It would also be good to be able to not have to break long lines or multiline things with backslashes all the time. Yes you can set that oneshell thingy, but that is inconvenient in other ways, because it is for the whole file instead of a single command or a single target.
So it could be better, definitely, but it does the job of doing DAGs well and it is available on most systems, so I don't have to add some huge tree of dependencies just to run tasks.