Skip to content

Commit

Permalink
docs: add mk-ca-bundle.1 to dist
Browse files Browse the repository at this point in the history
... which also makes it get built. But don't build this or curl-config.1
if build docs is disabled.

Closes #12875
  • Loading branch information
bagder committed Feb 6, 2024
1 parent c177e19 commit 755b31d
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions docs/Makefile.am
Expand Up @@ -24,19 +24,26 @@

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
# the curl.1 rule below runs first
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 = \
Expand Down

0 comments on commit 755b31d

Please sign in to comment.