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