2007-11-18 00:15:22 +05:30
|
|
|
if ENABLE_REGENERATE_MAN
|
|
|
|
|
|
|
|
LANG=$(notdir $(CURDIR))
|
|
|
|
|
|
|
|
%.xml: ../%.xml $(LANG).po
|
|
|
|
xml2po -l $(LANG) -p $(LANG).po -o $@ ../$@
|
|
|
|
sed -i 's:\(^<refentry .*\)>:\1 lang="$(LANG)">:' $@
|
|
|
|
|
2007-11-23 03:06:38 +05:30
|
|
|
if USE_PAM
|
|
|
|
PAM_COND=pam
|
|
|
|
else
|
|
|
|
PAM_COND=no_pam
|
|
|
|
endif
|
|
|
|
if SHADOWGRP
|
|
|
|
SHADOWGRP_COND=gshadow
|
|
|
|
else
|
|
|
|
SHADOWGRP_COND=no_gshadow
|
|
|
|
endif
|
|
|
|
|
2007-11-18 00:15:22 +05:30
|
|
|
%: %.xml
|
2007-11-23 03:06:38 +05:30
|
|
|
$(XSLTPROC) --stringparam profile.condition "$(PAM_COND);$(SHADOWGRP_COND)" \
|
|
|
|
-nonet http://docbook.sourceforge.net/release/xsl/current/manpages/profile-docbook.xsl $<
|
2007-11-18 00:15:22 +05:30
|
|
|
|
|
|
|
grpconv.8 grpunconv.8 pwunconv.8: pwconv.8
|
|
|
|
|
|
|
|
getspnam.3: shadow.3
|
|
|
|
|
|
|
|
vigr.8: vipw.8
|
|
|
|
|
2007-11-19 06:46:42 +05:30
|
|
|
CLEANFILES = .xml2po.mo $(EXTRA_DIST) $(addsuffix .xml,$(EXTRA_DIST))
|
2007-11-18 00:15:22 +05:30
|
|
|
|
|
|
|
endif
|