Make:仅在源的md5校验和已更改的情况下构建某些东西 [英] Make: only build something if the source's md5 checksum was changed
问题描述
是否可以告诉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屋!