From 755b31da10dacca94e0d00029a7306e09e3fe913 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 6 Feb 2024 09:29:17 +0100 Subject: [PATCH] docs: add mk-ca-bundle.1 to dist ... which also makes it get built. But don't build this or curl-config.1 if build docs is disabled. Closes #12875 --- docs/Makefile.am | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/docs/Makefile.am b/docs/Makefile.am index 94cb8bc1d87427..d9bdd176cce584 100644 --- a/docs/Makefile.am +++ b/docs/Makefile.am @@ -24,11 +24,18 @@ AUTOMAKE_OPTIONS = foreign no-dependencies +if BUILD_DOCS +# if we disable man page building, ignore these +MK_CA_DOCS = mk-ca-bundle.1 +CURLCONF_DOCS = curl-config.1 +endif + + # EXTRA_DIST breaks with $(abs_builddir) so build it using this variable # but distribute it (using the relative file name) in the next variable man_MANS = $(abs_builddir)/curl.1 -noinst_man_MANS = curl.1 mk-ca-bundle.1 -dist_man_MANS = curl-config.1 +noinst_man_MANS = curl.1 $(MK_CA_DOCS) +dist_man_MANS = $(CURLCONF_DOCS) $(MK_CA_DOCS) CURLPAGES = curl-config.md mk-ca-bundle.md # Build targets in this file (.) before cmdline-opts to ensure that @@ -36,7 +43,7 @@ CURLPAGES = curl-config.md mk-ca-bundle.md SUBDIRS = . cmdline-opts libcurl DIST_SUBDIRS = $(SUBDIRS) examples -CLEANFILES = $(man_MANS) curl.1 curl-config.1 mk-ca-bundle.1 +CLEANFILES = $(man_MANS) curl.1 $(CURLCONF_DOCS) $(MK_CA_DOCS) nodist_MANS = $(CLEANFILES) EXTRA_DIST = \