Recently Written · git

tmpl

Insanely simple templates

git clone https://github.com/equwal/tmpl

Log | Files | Refs


make/mapping/map-fn (245 bytes)

1 # Define a map function from a one-argument function
2 var := a
3 map = $(foreach $(var), $(2), $(call $(1),$(var)))
4 # <new-mapped-fn> = $(call map,<old-onearg-fn>,<new-mapped-fn> map MAKE
5 <++> = $(call map,<++>,<++> map MAKE)
6 # now you can call it