Skip to content

Commit

Permalink
docs: fix the --disable-docs for autotools
Browse files Browse the repository at this point in the history
Follow-up to 5413215

Closes #12870
  • Loading branch information
bagder committed Feb 6, 2024
1 parent ad79612 commit 8094474
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/libcurl/Makefile.am
Expand Up @@ -26,9 +26,11 @@ AUTOMAKE_OPTIONS = foreign no-dependencies

SUBDIRS = opts

if BUILD_DOCS
include Makefile.inc

CURLPAGES = $(man_MANS:.3=.md)
endif

m4macrodir = $(datadir)/aclocal
dist_m4macro_DATA = libcurl.m4
Expand All @@ -39,6 +41,8 @@ nodist_MANS = $(man_MANS)
EXTRA_DIST = $(CURLPAGES) ABI.md symbols-in-versions symbols.pl \
mksymbolsmanpage.pl CMakeLists.txt

if BUILD_DOCS

CD2NROFF = $(top_srcdir)/scripts/cd2nroff $< >$@
CD2 = $(CD2_$(V))
CD2_0 = @echo " RENDER " $@;
Expand All @@ -52,3 +56,5 @@ libcurl-symbols.md: $(srcdir)/symbols-in-versions $(srcdir)/mksymbolsmanpage.pl

.md.3:
$(CD2)$(CD2NROFF)

endif
5 changes: 5 additions & 0 deletions docs/libcurl/opts/Makefile.am
Expand Up @@ -24,14 +24,18 @@

AUTOMAKE_OPTIONS = foreign no-dependencies

if BUILD_DOCS
include Makefile.inc

CURLPAGES = $(man_MANS:.3=.md)
endif
CLEANFILES = $(man_MANS)
nodist_MANS = $(man_MANS)

EXTRA_DIST = $(CURLPAGES) CMakeLists.txt

if BUILD_DOCS

CD2NROFF = $(top_srcdir)/scripts/cd2nroff $< >$@
CD2 = $(CD2_$(V))
CD2_0 = @echo " RENDER " $@;
Expand All @@ -42,3 +46,4 @@ SUFFIXES = .3 .md

.md.3:
$(CD2)$(CD2NROFF)
endif

0 comments on commit 8094474

Please sign in to comment.