Skip to content

Instantly share code, notes, and snippets.

@udovichenko
Last active December 11, 2022 00:33
Show Gist options
  • Save udovichenko/cf64bf3964dbdb787cc8ac9ee06e4f63 to your computer and use it in GitHub Desktop.
Save udovichenko/cf64bf3964dbdb787cc8ac9ee06e4f63 to your computer and use it in GitHub Desktop.
Makefile: dynamically create targets from array
TARGETS = func1 func2 func3
$(TARGETS): %:
./funcs.sh $*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment