Skip to content

Instantly share code, notes, and snippets.

@irondoge
Last active October 14, 2016 23:27
Show Gist options
  • Save irondoge/b379c6ae585ddae7611865bc74573332 to your computer and use it in GitHub Desktop.
Save irondoge/b379c6ae585ddae7611865bc74573332 to your computer and use it in GitHub Desktop.
extract Makefile variables
$ cat Makefile
NAME := star my github repo's pliz
NAME2 = OK
get-%:; $($*)
$ make -n get-NAME
star my github repo's pliz
$ make -n get-NAME2
OK
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment