Skip Navigation
General Programming Discussion @lemmy.ml
bahmanm @lemmy.ml

bmakelib v0.8.0 released!

github.com Release v0.8.0 · bahmanm/bmakelib

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...

Release v0.8.0 · bahmanm/bmakelib

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:

 makefile
    
$(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

  
0 comments

No comments

Start the conversation!