Closed ozyx closed 1 month ago
Fixes #32
clean
make all
Plus...
Makefile
.PHONY
.ONESHELL
.SHELLFLAGS
-e
-u
-o pipefail
print_message
Fixes #32
clean
step to the Makefileclean
step as the first step inmake all
to ensure reproducible buildsPlus...
Makefile
.PHONY
,.ONESHELL
, and other modern Makefile best-practices to increase robustness.ONESHELL
- run all commands in a recipe in a single shell.SHELLFLAGS
-e
: Exit immediately if a command exits with non-zero exit code-u
: Treat unset variables as an error when substituting-o pipefail
: Return value of a pipeline is the status of the last command to exit with a non-zero statusprint_message
helper function to print colorized messages to the terminal