Skip to content

Instantly share code, notes, and snippets.

@mdozmorov
Last active August 29, 2015 13:57
Show Gist options
  • Save mdozmorov/9621982 to your computer and use it in GitHub Desktop.
Save mdozmorov/9621982 to your computer and use it in GitHub Desktop.
Makefile, canned recipes
AN1 = foo
AN2 = bar
#Variable 'an' serves as proxy for a function, executed depending on targer $@
define an
echo $@
touch $@
endef
all: $(AN1).txt $(AN2).txt
$(AN1).txt:
$(an)
$(AN2).txt:
$(an)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment