我的生成文件:
all: ...(other rules) clean
clean:
rm $(find . -type f -executable)
Run Code Online (Sandbox Code Playgroud)
当我clean
从上面的 Makefile 中删除规则时,一切都按预期工作。添加后,make
(也make clean
)命令结果为:
rm
rm: missing operand
Try 'rm --help' for more information.
make: *** [Makefile:46: clean] Error 1
Run Code Online (Sandbox Code Playgroud)
是什么原因导致这里出现问题以及如何解决?