2007-11-17 18:45:22 +00:00
|
|
|
LANG=$(notdir $(CURDIR))
|
|
|
|
|
2009-08-30 19:46:54 +00:00
|
|
|
if ENABLE_REGENERATE_MAN
|
2010-03-20 10:25:34 +00:00
|
|
|
config.xml: ../config.xml.in
|
|
|
|
$(MAKE) -C .. config.xml
|
|
|
|
cp ../config.xml $@
|
|
|
|
|
|
|
|
%.xml: ../%.xml ../po/$(LANG).po
|
2007-11-26 22:13:16 +00:00
|
|
|
xml2po --expand-all-entities -l $(LANG) -p ../po/$(LANG).po -o $@ ../$@
|
2007-11-17 18:45:22 +00:00
|
|
|
sed -i 's:\(^<refentry .*\)>:\1 lang="$(LANG)">:' $@
|
2010-03-20 10:25:34 +00:00
|
|
|
|
|
|
|
include ../generate_mans.mak
|
|
|
|
|
2009-08-30 19:46:54 +00:00
|
|
|
else
|
2010-03-20 10:25:34 +00:00
|
|
|
$(man_MANS):
|
2009-08-30 19:46:54 +00:00
|
|
|
@echo you need to run configure with --enable-man to generate man pages
|
|
|
|
endif
|
2009-03-14 16:18:06 +00:00
|
|
|
|
2011-06-03 21:06:23 +00:00
|
|
|
CLEANFILES = .xml2po.mo $(EXTRA_DIST) $(addsuffix .xml,$(EXTRA_DIST)) config.xml
|