【发布时间】:2014-08-01 06:58:29
【问题描述】:
我在 make 中有一个变量,它依赖于必须在设置变量之前构建的文件,有没有办法让它工作?
parsable_file: dependancies
commands to make parsable_file
targets=$(shell parse_cmd parsable_file)
$(targets): parsable_file
command to make targets
.phony: all
all:$(targets)
如果我运行$ make parsable_file && make all,这将起作用(我得到一个错误,parse_cmd 找不到 parsable_file 但它起作用),但只是让一切都不起作用。有没有一个Make成语?
【问题讨论】:
标签: makefile