3
submitted 1 year ago by [email protected] to c/[email protected]

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.
no comments (yet)
sorted by: hot top new old
there doesn't seem to be anything here
this post was submitted on 07 Feb 2024
3 points (80.0% liked)

makefile

75 readers
1 users here now

📢   All about Makefiles, Gnu Make, BSD Make & POSIX Make:

😎   Don't repeat yourself - Make Make make things happen for you!

📖   Gnu Make manual is your friend.

🗨   Join the chatter in #.mk:matrix.org.


⚠   Knowing/Mastering Make is nothing special. Please bear that in mind & keep the conversations respectful & civil.

⛔   Hate speech, bigotry and NSFW content will not be tolerated.


founded 2 years ago
MODERATORS