From 4182b3a1f9f6e1823db9832533c6c9e51d13da8e Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Sun, 29 Jan 2012 22:11:45 +0100 Subject: Include sudo manual pages only conditionally --- src/man/Makefile.am | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'src/man/Makefile.am') diff --git a/src/man/Makefile.am b/src/man/Makefile.am index 09af8985..36c3921d 100644 --- a/src/man/Makefile.am +++ b/src/man/Makefile.am @@ -5,11 +5,20 @@ top_builddir = ../.. # MANPAGES # ############ + +# If no conditions are given, *all* conditionals are expanded. We don't +# to include any conditions by default, so we need to pass a phony conditional +CONDS=with_false +if BUILD_SUDO +# conditionals are delimeted with a semicolon +CONDS+=;with_sudo +endif + #Special Rules: export SGML_CATALOG_FILES -DOCBOOK_XSLT = http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl +DOCBOOK_XSLT = http://docbook.sourceforge.net/release/xsl/current/manpages/profile-docbook.xsl XMLLINT_FLAGS = --catalogs --postvalid --nonet --xinclude --noout -XSLTPROC_FLAGS = --catalogs --xinclude --nonet +XSLTPROC_FLAGS = --stringparam profile.condition "$(CONDS)" --catalogs --xinclude --nonet man_MANS = \ sss_useradd.8 sss_userdel.8 sss_usermod.8 \ -- cgit