5 ms·
What is a makefile in 2022? I use them as cross-platform task runners with commands like "make run-tests" "make run-dev-server". I use it for Go, Rust and even
by apatheticonion 4y ago
What is a makefile in 2022?
I use them as cross-platform task runners with commands like "make run-tests" "make run-dev-server". I use it for Go, Rust and even JavaScript (omitting npm scripts).
"make" is an odd keyword for such tasks but there really isn't another simple cross-platform task runner I can use.
- busfahrer 4y agoI use "just" for this purpose, and I'm very happy with it: https://github.com/casey/just https://github.com/casey/just
- apatheticonion 4y agoThis is great, thank you for the recommendation
- baliex 4y agoSame here. `make test` beats `./gradlew clean test` in one project and `pytest -s ...` in another, etc.
- rsclarke 4y agohttps://taskfile.dev/ https://taskfile.dev/ has been my go to for this.
- walthamstow 4y agoYep we use them to run tasks on AWS CodeBuild and Lambda machines. Make, like vi, has the advantage of just always being there already on whatever machine you need it on.
- efxhoy 4y agoMe too, I usually have a make “up”, “services” and “test” that do docker “compose up —detach", “docker compose down —volumes” and “rm -rf” temp dirs and run tests with whatever language i’m using. Saves a free brain cycle when switching languages. Sometimes a “data” target for downloading raw data from the internet for stuff like GIS projects. I never work in C or other languages that actually require the dependency management that make supports.