> i use the change times on files, so writing only the changed files
> is important to me.
Important to you or to mk? Not that I recommend this as a solution
to the problem of writing only changed files, but I tend to write
mk recipes like
%.dvi:DP false: %.tex %.aux
touch md5/$target
md5 $prereq >junk/$target
while
! cmp -s junk/$target md5/$target
do
latex $stem.tex </dev/null
mv junk/$target md5/$target
md5 $prereq >junk/$target
done
rm junk/$target
so that the target is rebuilt if the prerequites have really changed
rather than if their timestamps have. In the example of LaTeX this
is needed for a variety of reasons stemming from the innate stupidity
of the program, but I've started doing it for pretty much everything.
It's very helpful if, for example, you want to rebuild an old version
of the target. The md5 and cmp overhead is tolerable for small
projects, but I admit that it scales badly.
ps Sorry for giving the p9p version rather the native.
--
John Stalker
University of Dublin, Trinity College
School of Mathematics