* doc/local.mk (constants.texi): Avoid calling makeinfo unless
the constants derived from tail and shred have changed.
This avoids a dependence on makeinfo from patched sources,
and avoids an expensive makeinfo call for developers.
sed -n -e \
's/.*\(DEFAULT_PASSES\)[ =]* \([0-9]*\).*/@set SHRED_\1 \2/p'\
$(top_srcdir)/src/shred.c; } > $@-t \
- && mv $@-t $@
+ && { cmp $@-t $@ >/dev/null 2>&1 || mv $@-t $@; }
MAINTAINERCLEANFILES += doc/constants.texi