summaryrefslogtreecommitdiffstats
path: root/Configurations
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2021-02-22 06:49:24 +0100
committerRichard Levitte <levitte@openssl.org>2021-02-23 18:24:28 +0100
commit7b9f8995f44482610d4f3452118e53c2f259511d (patch)
treefb15435e264b0efd070a18740f4a5547c2508680 /Configurations
parent1263154064d2a15253381353cf804e05af18ad1b (diff)
Generate doc/build.info with 'make update' rather than on the fly
doc/build.info was essentially generated on the fly while running Configure, something that takes a huge amount of time on slower file systems (such as Windows). Instead, we generate it with 'make update', saving the user from having to wait for too long, at the small price for developers to have to run 'make update' whenever they write a new manual file. Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/14269)
Diffstat (limited to 'Configurations')
-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 16d4337dab..b0aff03ad1 100644
--- a/Configurations/unix-Makefile.tmpl
+++ b/Configurations/unix-Makefile.tmpl
@@ -1022,11 +1022,15 @@ uninstall_html_docs:
# Developer targets (note: these are only available on Unix) #########
-update: generate errors ordinals
+# It's important that generate_buildinfo comes after ordinals, as ordinals
+# is sensitive to build.info changes.
+update: generate errors ordinals generate_buildinfo
generate: generate_apps generate_crypto_bn generate_crypto_objects \
generate_crypto_conf generate_crypto_asn1 generate_fuzz_oids
+generate_buildinfo: generate_doc_buildinfo
+
.PHONY: doc-nits cmd-nits md-nits
doc-nits: build_generated_pods
$(PERL) $(SRCDIR)/util/find-doc-nits -n -l -e
@@ -1089,6 +1093,11 @@ generate_fuzz_oids:
crypto/objects/obj_dat.h \
> fuzz/oids.txt )
+generate_doc_buildinfo:
+ ( $(PERL) -I$(BLDDIR) -Mconfigdata \
+ $(SRCDIR)/util/dofile.pl -o Makefile \
+ $(SRCDIR)/doc/build.info.in > $(SRCDIR)/doc/build.info )
+
# Set to -force to force a rebuild
ERROR_REBUILD=
errors: