Skip to content

Instantly share code, notes, and snippets.

@kenenbek
Last active July 22, 2020 23:14
Show Gist options
  • Save kenenbek/be6817a6292191902751e8a3b48e39b5 to your computer and use it in GitHub Desktop.
Save kenenbek/be6817a6292191902751e8a3b48e39b5 to your computer and use it in GitHub Desktop.
assign-vars = $(foreach A,$2,$(eval $1: $A))
multiple_variable = a=10 \
b=$(shell echo $$(( $(a)-1 )) )
$(call assign-vars, print, $(multiple_variable))
print:
@echo $(b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment