From: Pádraig Brady
Date: Wed, 25 Nov 2015 13:38:29 +0000 (+0000) Subject: build: avoid makeinfo unless required X-Git-Tag: v8.25~75 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=34f20fcc4a0abeef93bcc5995f2e083f1cf93c0f;p=thirdparty%2Fcoreutils.git 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. --- diff --git a/doc/local.mk b/doc/local.mk index 37c5621e3e..a270c1faab 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