Make: only build something if the source's md5 checksum was changed

后端 未结 3 1629
执念已碎
执念已碎 2020-12-25 15:28

Is it possible to tell make to only build a target if it\'s sources md5 checksum has changed (instead of the edit time)?

I\'m using make to

3条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-25 16:03

    No, this is not supported by Make — as you've found out, support for this feature is one of the reasons why tools like Scons exist.

    I found a manual recipe for GNU make, though. Maybe you can use that as a work around.

提交回复
热议问题