add no-docs option

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21240)
This commit is contained in:
Vladimír Kotal 2023-06-19 13:43:35 +02:00 committed by Pauli
parent 32d2b5fdd9
commit 956b4c75dc
5 changed files with 12 additions and 6 deletions

View File

@ -49,6 +49,7 @@ jobs:
no-des,
no-devcryptoeng,
no-dh,
no-docs,
no-dsa,
no-dtls1,
no-dtls1_2,

View File

@ -512,7 +512,7 @@ LANG=C
{- dependmagic('build_modules', 'Build the modules (i.e. providers and engines)'); -}: build_modules_nodep
{- dependmagic('build_programs', 'Build the openssl executables and scripts'); -}: build_programs_nodep
all: build_sw build_docs ## Build software and documentation
all: build_sw {- "build_docs" if !$disabled{docs}; -} ## Build software and documentation
##@ Documentation
build_generated_pods: $(GENERATED_PODS)
@ -624,9 +624,9 @@ depend: Makefile
# Install helper targets #############################################
##@ Installation
install: install_sw install_ssldirs install_docs {- $disabled{fips} ? "" : "install_fips" -} ## Install software and documentation, create OpenSSL directories
install: install_sw install_ssldirs {- "install_docs" if !$disabled{docs}; -} {- $disabled{fips} ? "" : "install_fips" -} ## Install software and documentation, create OpenSSL directories
uninstall: uninstall_docs uninstall_sw {- $disabled{fips} ? "" : "uninstall_fips" -} ## Uninstall software and documentation
uninstall: {- "uninstall_docs" if !$disabled{docs}; -} uninstall_sw {- $disabled{fips} ? "" : "uninstall_fips" -} ## Uninstall software and documentation
install_sw: install_dev install_engines install_modules install_runtime ## Install just the software and libraries

View File

@ -436,7 +436,7 @@ build_all_generated: $(GENERATED_MANDATORY) $(GENERATED) build_docs
@$(ECHO) " then make will fail..."
@{- output_on() if $disabled{makedepend}; "\@rem" -}
all: build_sw build_docs
all: build_sw {- "build_docs" if !$disabled{docs}; -}
test: tests
{- dependmagic('tests'); -}: build_programs_nodep build_modules_nodep copy-utils
@ -453,9 +453,9 @@ list-tests:
@$(ECHO) "Tests are not supported with your chosen Configure options"
@{- output_on() if !$disabled{tests}; "\@rem" -}
install: install_sw install_ssldirs install_docs {- $disabled{fips} ? "" : "install_fips" -}
install: install_sw install_ssldirs {- "install_docs" if !$disabled{docs}; -} {- $disabled{fips} ? "" : "install_fips" -}
uninstall: uninstall_docs uninstall_sw {- $disabled{fips} ? "" : "uninstall_fips" -}
uninstall: {- "uninstall_docs" if !$disabled{docs}; -} uninstall_sw {- $disabled{fips} ? "" : "uninstall_fips" -}
libclean:
"$(PERL)" -e "map { m/(.*)\.dll$$/; unlink glob """{.,apps,test,fuzz}/$$1.*"""; } @ARGV" $(SHLIBS)

View File

@ -441,6 +441,7 @@ my @disablables = (
"devcryptoeng",
"dgram",
"dh",
"docs",
"dsa",
"dso",
"dtls",

View File

@ -716,6 +716,10 @@ Don't build support for datagram based BIOs.
Selecting this option will also force the disabling of DTLS.
### no-docs
Don't build and install documentation, i.e. manual pages in various forms.
### no-dso
Don't build support for loading Dynamic Shared Objects (DSO)