我使用 shell(bash,但我需要可移植性)和 GNU Makefile。我有这个代码:
check_commands:
command -v find >/dev/null
command -v asdf >/dev/null
正如假设的那样,第一个命令被传递,第二个命令中止 Makefile 并出现错误。现在,我删除>/dev/null
. 那为什么
check_commands:
command -v find
产生以下错误?
make: command: Command not found.