shadow/man/generate_translations.mak
nekral-guest f103e6263d * man/generate_translations.mak, man/generate_mans.mak,
po/Makefile.in.in: Removing and restoring the config.xml file
	broke parallel builds. Build the manpages based on *.xml-config
	files instead of *.xml files.  The *.xml do not include config.xml
	anymore, which permits to run xml2po without needing to remove
	config.xml. The config.xml is restored in the *.xml-config files.
	* man/groupadd.8.xml: Implementation of the above.
	* man/generate_mans.deps: Updated dependencies
2009-09-07 21:49:29 +00:00

19 lines
481 B
Makefile

LANG=$(notdir $(CURDIR))
%.xml: ../%.xml ../po/$(LANG).po
if ENABLE_REGENERATE_MAN
xml2po --expand-all-entities -l $(LANG) -p ../po/$(LANG).po -o $@ ../$@
sed -i 's:\(^<refentry .*\)>:\1 lang="$(LANG)">:' $@
else
@echo you need to run configure with --enable-man to generate man pages
@false
endif
config.xml: ../config.xml.in
$(MAKE) -C .. config.xml
cp ../config.xml $@
include ../generate_mans.mak
CLEANFILES = .xml2po.mo $(EXTRA_DIST) $(addsuffix .xml,$(EXTRA_DIST))