1
submitted 9 months ago by bahmanm@lemmy.ml to c/makefile@lemmy.ml

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 controversial new old
there doesn't seem to be anything here
this post was submitted on 07 Feb 2024
1 points (100.0% liked)

makefile

25 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 1 year ago
MODERATORS