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
This commit is contained in:
Daniel Stenberg 2024-02-06 09:29:17 +01:00
parent c177e1944c
commit 755b31da10
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -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 = \