Makefileの引数

Makefileで引数をとる方法

all:
	echo $(argv)

実行結果

[root@3887c9e925f4 ~]# make all argv=Hello
echo Hello
Hello
[root@3887c9e925f4 ~]#