Makefile模式匹配

时间:2013-01-27 08:34:17

标签: makefile

我的Makefile中有两个模式规则。 target1实际上匹配这两个规则。当我运行makefile时,它总是尝试运行模式rule1的配方而不是我想要的模式rule2。对于特定目标(例如target1),是否可以让makefile进程跳过匹配rule1并继续查找第二个匹配(rule2)???

  ## pattern rule 1
    %.xml: $^
       recipes ....

  ## pattern rule 2
    /opt/test1/xml/default%.xml: $^
       recipes ....

  ## target1
    /opt/test1/xml/default1.xml: prereq

0 个答案:

没有答案
相关问题