Created
August 15, 2018 07:15
-
-
Save kmsheng/1e31a1a2d15a6d2b440292bbe8030995 to your computer and use it in GitHub Desktop.
Notice $@ and $* are quite different compare to shell script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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