【发布时间】:2018-05-09 13:51:47
【问题描述】:
考虑以下Makefile:
foo: FOOVAR:=$(shell prog_to_execute_only_on_foo)
foo:
echo "foo"
bar:
echo "bar"
我希望能够在不解析 FOOVAR 的 shell 命令的情况下运行 make bar。
有可能吗?
如果没有,有没有办法解决这个问题?确保运行make bar时不会执行shell命令?
【问题讨论】:
标签: bash shell makefile gnu-make