* man/generate_mans.mak, man/generate_translations.mak: Provide an

useful error message when --enable-man is not enabled and the
	translated manpages are not generated.
This commit is contained in:
nekral-guest
2009-08-30 19:46:54 +00:00
parent 9031103c24
commit 915e78ee2d
3 changed files with 17 additions and 9 deletions

View File

@@ -1,5 +1,3 @@
if ENABLE_REGENERATE_MAN
if USE_PAM
PAM_COND=pam
else
@@ -18,13 +16,16 @@ SHA_CRYPT_COND=no_sha_crypt
endif
%: %.xml Makefile config.xml
if ENABLE_REGENERATE_MAN
$(XSLTPROC) --stringparam profile.condition "$(PAM_COND);$(SHADOWGRP_COND);$(SHA_CRYPT_COND)" \
-nonet http://docbook.sourceforge.net/release/xsl/current/manpages/profile-docbook.xsl $<
else
@echo you need to run configure with --enable-man to generate man pages
@false
endif
grpconv.8 grpunconv.8 pwunconv.8: pwconv.8
getspnam.3: shadow.3
vigr.8: vipw.8
endif