GNU make with many target directories

后端 未结 4 810
长情又很酷
长情又很酷 2021-02-10 17:02

I have to integrate the generation of many HTML files in an existing Makefile. The problem is that the HTML files need to reside in many different directories. My i

4条回答
  •  迷失自我
    2021-02-10 17:37

    Like Maria Shalnova I like recursive make (though I disagree with "Recursive Make Considered Harmful"), and in general it's better to make something HERE from a source THERE, not the reverse. But if you must, I suggest a slight improvement: have generateHtml generate only the RULE, not the COMMANDS.

提交回复
热议问题