Release v0.8.0 · bahmanm/bmakelib
github.com
external-link
The highlight of the release is Dictionary (aka Map) in makefiles which can be used, among other things, to structure your data/variables. An example is worth a thousand words: $(call bmakelib.dict...

bmakelib (which is a minimalist standard library for GNU Make) v0.8.0 was released last week.

The highlight of the release is the ability to use maps/dictionaries in your makefiles!

Here’s the example from the release page:

$(call bmakelib.dict.define,THIS_BUILD)
$(call bmakelib.dict.put,THIS_BUILD,arch,x86_64)
$(call bmakelib.dict.put,THIS_BUILD,dir,/tmp/my-app/build)

some-target :
	@echo BUILD.arch = $(call bmakelib.dict.get,BUILD,arch)  # x86_64
	@echo BUILD.arch = $(call bmakelib.dict.get,BUILD,dir)   # /tmp/my-app/build
General Programming Discussion
!programming@lemmy.ml

    A general programming discussion community.

    Rules:

    1. Be civil.
    2. Please start discussions that spark conversation

    Other communities

    Systems

    Functional Programming

    Also related

    • 0 users online
    • 3 users / day
    • 7 users / week
    • 40 users / month
    • 135 users / 6 months
    • 1 subscriber
    • 345 Posts
    • 547 Comments
    • Modlog