Make:仅在源的md5校验和已更改的情况下构建某些东西 [英] Make: only build something if the source's md5 checksum was changed

查看:76
本文介绍了Make:仅在源的md5校验和已更改的情况下构建某些东西的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以告诉make仅在源md5校验和发生更改(而不是编辑时间)时才构建目标?

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

我正在使用make来编译我的.tex文件,并且需要防止它始终两次构建所有内容.

I'm using make to compile my .tex files and I need to prevent it from building everything twice all the time.

我曾经尝试过使用Scons,但是我觉得这不能适应我的其他需求.

I've tried using Scons, but I feel this isn't adaptable to other needs I have.

推荐答案

否,Make不支持此功能-如您所知,它支持 Scons 存在.

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.

我找到了GNU make的手册食谱 .也许您可以将其用作解决方法.

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

这篇关于Make:仅在源的md5校验和已更改的情况下构建某些东西的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆