[ANN] bmakelib v0.7.0
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:
<span style="font-weight:bold;color:#a71d5d;">include </span><span style="color:#183691;">bmakelib/bmakelib.mk
</span><span style="color:#323232;">
</span><span style="color:#323232;">VAR1 </span><span style="font-weight:bold;color:#a71d5d;">:= $(</span><span style="color:#0086b3;">call </span><span style="color:#323232;">bmakelib.shell.error-if-nonzero</span><span style="color:#183691;">,
</span><span style="color:#183691;"> echo Fails hard❗ && false</span><span style="font-weight:bold;color:#a71d5d;">)
</span><span style="color:#323232;">
</span><span style="font-weight:bold;color:#795da3;">unreachable-target </span><span style="font-weight:bold;color:#a71d5d;">:
</span>
Shell:
<span style="color:#323232;">$ make unreachable-target
</span><span style="color:#323232;">Makefile:3: *** shell.error-if-nonzero: Command exited with non-zero value 1. Stop.
</span>
Add comment