Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
maint: build: allow requesting no HTML man + use in spec
  • Loading branch information
jnpkrn committed Apr 11, 2016
commit 1319660bb656b65c5886646322935f067d1c18fb
5 changes: 4 additions & 1 deletion booth.spec
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
%bcond_with html_man

%if 0%{?suse_version}
%global booth_docdir %{_defaultdocdir}/%{name}
%else
Expand Down Expand Up @@ -75,7 +77,8 @@ Pacemaker.
./autogen.sh
%configure \
--with-initddir=%{_initrddir} \
--docdir=%{booth_docdir}
--docdir=%{booth_docdir} \
%{!?with_html_man:--without-html_man}

make

Expand Down
5 changes: 5 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ AC_PATH_PROGS(ASCIIDOC, asciidoc)
AC_PATH_PROGS(XML2CONFIG, xml2-config)

AM_CONDITIONAL(BUILD_ASCIIDOC, test x"${ASCIIDOC}" != x"")
AM_CONDITIONAL(BUILD_ASCIIDOC_HTML_MAN,
test "x${ASCIIDOC}" != "x" && test "x$with_html_man" = "xyes")

# libgcrypt or mhash for hmac
libgcrypt_installed="yes"
Expand Down Expand Up @@ -209,6 +211,9 @@ AC_ARG_WITH([build-version],
[ BOOTH_BUILD_VERSION="$withval" ],
[ BOOTH_BUILD_VERSION="${GIT_VER:-$PACKAGE_VERSION}" ])

AC_ARG_WITH([html_man],
[ --without-html_man : Avoid generating man pages in HTML.])

# OS detection
# THIS SECTION MUST DIE!
CP=cp
Expand Down
4 changes: 3 additions & 1 deletion docs/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@ doc_DATA = $(generated_docs)
generated_docs =
generated_mans =

if BUILD_ASCIIDOC
if BUILD_ASCIIDOC_HTML_MAN
generated_docs += $(ascii:%.txt=%.html) $(asciiman:%.txt=%.html)
endif
if BUILD_ASCIIDOC
generated_mans += $(asciiman:%.8.txt=%.8)
$(generated_mans): $(asciiman)
man8_MANS = $(generated_mans)
Expand Down