我希望在我的 GNUmakefile 中有一个调用新 shell 的目标规则,然后使用新 shell 的干净石板调用新的 make。
这样做的语法是什么?
我试过了,但没有用:
.PHONY: setup
setup:
shell cd myDir; make; cd ..
它会无限重复以下错误:
make[1]: Entering directory `/disk4/home/user/parent'
shell cd myDir; make; cd ..
/bin/sh: shell: command not found
make[1]: Entering directory `/disk4/home/user/parent'
shell cd myDir; make; cd ..
/bin/sh: shell: command not found
[...]