From: Chris Webb Date: Wed, 27 Mar 2024 10:09:54 +0000 (+0000) Subject: cmdline-docs: fix make install with configure --disable-docs X-Git-Tag: curl-8_8_0~348 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4b42cda3df85419328ba8c9160a3e8306605d094;p=thirdparty%2Fcurl.git cmdline-docs: fix make install with configure --disable-docs make -C docs/cmdline-opts install depends on all-am, which in turn depends on $(MANS), unconditionally defined to be $(man_MANS). As with CLEANFILES, only add curl.1 to man_MANS when BUILD_DOCS is true so we don't try to build curl.1 unnecessarily. Closes #13198 --- diff --git a/docs/cmdline-opts/Makefile.am b/docs/cmdline-opts/Makefile.am index 81a4afe1bc..62c776f3f5 100644 --- a/docs/cmdline-opts/Makefile.am +++ b/docs/cmdline-opts/Makefile.am @@ -27,8 +27,6 @@ AUTOMAKE_OPTIONS = foreign no-dependencies MANPAGE = curl.1 ASCIIPAGE = curl.txt -man_MANS = $(MANPAGE) - include Makefile.inc EXTRA_DIST = $(DPAGES) MANPAGE.md $(SUPPORT) CMakeLists.txt mainpage.idx @@ -42,6 +40,7 @@ MANAGEN=$(abs_top_srcdir)/scripts/managen if BUILD_DOCS CLEANFILES = $(MANPAGE) $(ASCIIPAGE) +man_MANS = $(MANPAGE) all: $(MANPAGE) $(ASCIIPAGE)