]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
cmdline-docs: fix make install with configure --disable-docs
authorChris Webb <chris@arachsys.com>
Wed, 27 Mar 2024 10:09:54 +0000 (10:09 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 27 Mar 2024 11:43:00 +0000 (12:43 +0100)
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

docs/cmdline-opts/Makefile.am

index 81a4afe1bcf1d0b739368d2983224beeb9e99dbb..62c776f3f50a59455a8d5d1ae62a322971eee4d0 100644 (file)
@@ -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)