* man/generate_translations.mak, man/generate_mans.mak: Fix

distcheck. All manpages generation code shall be enclosed in
	ENABLE_REGENERATE_MAN conditions.
This commit is contained in:
nekral-guest
2010-03-20 10:25:34 +00:00
parent 9b6beb496a
commit d1eae4c7e3
3 changed files with 18 additions and 9 deletions

View File

@@ -20,14 +20,15 @@ else
SHA_CRYPT_COND=no_sha_crypt
endif
if ENABLE_REGENERATE_MAN
%.xml-config: %.xml Makefile
sed -e 's/^<!-- SHADOW-CONFIG-HERE -->/<!ENTITY % config SYSTEM "config.xml">%config;/' $< > $@
%: %.xml-config Makefile config.xml
if ENABLE_REGENERATE_MAN
$(XSLTPROC) --stringparam profile.condition "$(PAM_COND);$(SHADOWGRP_COND);$(TCB_COND);$(SHA_CRYPT_COND)" \
-nonet http://docbook.sourceforge.net/release/xsl/current/manpages/profile-docbook.xsl $<
else
$(man_MANS):
@echo you need to run configure with --enable-man to generate man pages
@false
endif