RetroFed Forum
Your home away from modern life.
[ANN] bmakelib v0.7.0
Post Reply
AuthorMessage
bahmanm lemmy.ml bahmanm@lemmy.ml
Joined: 2023-06-26
Quote

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:

include  bmakelib/bmakelib.mk

VAR1 := $(call bmakelib.shell.error-if-nonzero,\
	       echo Fails hardâť— && false)

unreachable-target :

Shell:

$ make unreachable-target
Makefile:3: *** shell.error-if-nonzero: Command exited with non-zero value 1.  Stop.
1   Original
Post Reply
Back to top