Skip to content

Instantly share code, notes, and snippets.

@kmsheng
Created August 15, 2018 07:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kmsheng/1e31a1a2d15a6d2b440292bbe8030995 to your computer and use it in GitHub Desktop.
Save kmsheng/1e31a1a2d15a6d2b440292bbe8030995 to your computer and use it in GitHub Desktop.
Notice $@ and $* are quite different compare to shell script
all:
@echo "No target goes here"
target%:
@echo "\"\$$@\" = $@"
@echo "\"\$$*\" = $*"
@echo "\$$@ =" $@
@echo "\$$* =" $*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment