makeコマンドに引数を渡す

2020-07-05

渡せるんですね🥺

# Makefile
DEFAULT=fuga
test:
	@echo $(DEFAULT)
# shell

$ make
# -> fuga

$ make DEFAULT=hoge
# -> hoge

Reference

https://stackoverflow.com/questions/2826029/passing-additional-variables-from-command-line-to-make