summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
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