summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2015-11-25 13:38:29 +0000
committerPádraig Brady <P@draigBrady.com>2015-11-25 15:12:37 +0000
commit34f20fcc4a0abeef93bcc5995f2e083f1cf93c0f (patch)
treeb707dd7381cf6eb4080410b237e32e97f5c2c8c2 /doc
parentbc1bf0fdc256e6243c1df067654b87d507adb84e (diff)
downloadcoreutils-34f20fcc4a0abeef93bcc5995f2e083f1cf93c0f.tar.xz
build: avoid makeinfo unless required
* 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.
Diffstat (limited to 'doc')
-rw-r--r--doc/local.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/local.mk b/doc/local.mk
index 37c5621e3..a270c1faa 100644
--- a/doc/local.mk
+++ b/doc/local.mk
@@ -42,7 +42,7 @@ doc/constants.texi: $(top_srcdir)/src/tail.c $(top_srcdir)/src/shred.c
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