我有一个像这样的makefile:
.SILENT: #don't echo commands as we run them. ### # here, set $1 (in the latter bash script) to the first make arg. # $2 to the second one. # et cetera. # ($0 being set properly is optional) ### foo: echo "you passed to make: $1 $2 $3 $4 $5 $6"
所以我可以做:
make foo You passed to make: foo
(不要告诉任何人,但我正在创建“给我做三明治”的东西)