summaryrefslogtreecommitdiffstats
path: root/Configurations/unix-Makefile.tmpl
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2021-02-25 00:06:46 +0100
committerRichard Levitte <levitte@openssl.org>2021-02-26 08:54:09 +0100
commit5a6a6d59a642e0ee437e3753c152b67e92d3cb3f (patch)
tree2ab8f29944c003ed90281761ca2175345f9243cc /Configurations/unix-Makefile.tmpl
parentFix external symbols related to ec & sm2 keys (diff)
downloadopenssl-5a6a6d59a642e0ee437e3753c152b67e92d3cb3f.tar.xz
openssl-5a6a6d59a642e0ee437e3753c152b67e92d3cb3f.zip
Makefile: Only update doc/build.info when there's an actual change
Fixes #14307 Reviewed-by: Paul Dale <pauli@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/14309)
Diffstat (limited to '')
-rw-r--r--Configurations/unix-Makefile.tmpl11
1 files changed, 10 insertions, 1 deletions
diff --git a/Configurations/unix-Makefile.tmpl b/Configurations/unix-Makefile.tmpl
index b0aff03ad1..aa4b3ec0ec 100644
--- a/Configurations/unix-Makefile.tmpl
+++ b/Configurations/unix-Makefile.tmpl
@@ -1096,7 +1096,16 @@ generate_fuzz_oids:
generate_doc_buildinfo:
( $(PERL) -I$(BLDDIR) -Mconfigdata \
$(SRCDIR)/util/dofile.pl -o Makefile \
- $(SRCDIR)/doc/build.info.in > $(SRCDIR)/doc/build.info )
+ $(SRCDIR)/doc/build.info.in \
+ > $(SRCDIR)/doc/build.info.new; \
+ if ( test -e $(SRCDIR)/doc/build.info \
+ && cmp $(SRCDIR)/doc/build.info.new $(SRCDIR)/doc/build.info \
+ > /dev/null ); \
+ then \
+ rm $(SRCDIR)/doc/build.info.new; \
+ else \
+ mv $(SRCDIR)/doc/build.info.new $(SRCDIR)/doc/build.info; \
+ fi )
# Set to -force to force a rebuild
ERROR_REBUILD=