bmakelib v0.7.0
bmakelib v0.7.0
github.com
Release v0.7.0 · bahmanm/bmakelib
bmakelib v0.7.0 has just been released.
The highlight is the fail-fast alternative to $(shell)
which relieves you from checking .SHELLSTATUS
every time $(shell)
is used.
Makefile:
makefile
include bmakelib/bmakelib.mk VAR1 := $(call bmakelib.shell.error-if-nonzero,\ echo Fails hard❗ && false) unreachable-target :
Shell:
text
$ make unreachable-target Makefile:3: *** shell.error-if-nonzero: Command exited with non-zero value 1. Stop.