4 ms·
Here is a slightly more complex example of a Makefile I use when spinning up a new TypeScript project (but I switch out to use pnpm these days): https://github
by gbuk2013 2y ago
Here is a slightly more complex example of a Makefile I use when spinning up a new TypeScript project (but I switch out to use pnpm these days): https://github.com/borisovg/node-ts-template/blob/main/Makefile https://github.com/borisovg/node-ts-template/blob/main/Makef...
I still wouldn’t say it’s that complicated - you do need to know your way around the syntax a bit but it’s less challenging than getting all the other tooling working in the first place. :)
- orbisvicis 2y agoI didn't know you could redefine .PHONY like that and what... all the phony targets are accumulated into a list?
- gbuk2013 2y agoNot just .PHONY - you can do that for any target: https://www.gnu.org/software/make/manual/html_node/Multiple-Rules.html https://www.gnu.org/software/make/manual/html_node/Multiple-... “One file can be the target of several rules. All the prerequisites mentioned in all the rules are merged into one list of prerequisites for the target.”