Recently Written · git

tmpl

Insanely simple templates

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

Log | Files | Refs


make/functions/call-fn (350 bytes)

1 # call: expand a variable as a function with parameters
2 #call VARIABLE,PARAM,PARAM,...
3 #the variable contains a complex expression to be expanded
4 #the params go into $(1), $(2),...etc. for expansion
5 #nesting works and scoping works
6 #example:
7 #reverse = $(2) $(1)
8 #$(call reverse,a,b)
9 #b a
10 #
11 # see mapping function utils for some madness
12 $(call <++>)