小编Elg*_*rov的帖子

Makefile命令替换

我的生成文件:

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)

是什么原因导致这里出现问题以及如何解决?

make gnu-make command-substitution

10
推荐指数
1
解决办法
5003
查看次数

标签 统计

command-substitution ×1

gnu-make ×1

make ×1