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

后端 未结 3 1631
执念已碎
执念已碎 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:00

    I found 3 ways: From simply

    • Using temporary md5-files over an
    • elegant but unreadable hack to
    • patching GNU Make yourself

    (from patchy but simple to clean but hard to realize)

提交回复
热议问题