考虑一个简单的Makefile:的Makefile匹配任何规则作为中间
%.one: %.two
echo one
%.two: %.three
echo two
%.three: %.four
echo three
all: hi.one
正如预期的那样,make all
会产生:
echo three
three
echo two
two
echo one
one
但是,如果我做一个中间的规则,没有任何前缀/后缀:
%.one: %
echo one
%: %.three
echo one
%.three: %.four
echo one
all: hi.one
Make会失败,说没有规则可以制作hi.one
。 Make是不可能的?
不'hi.four'存在吗? – igagis
是的,它确实存在。 –