shadow/man/generate_translations.mak

14 lines
320 B
Makefile
Raw Normal View History

if ENABLE_REGENERATE_MAN
LANG=$(notdir $(CURDIR))
%.xml: ../%.xml ../po/$(LANG).po
xml2po --expand-all-entities -l $(LANG) -p ../po/$(LANG).po -o $@ ../$@
sed -i 's:\(^<refentry .*\)>:\1 lang="$(LANG)">:' $@
include ../generate_mans.mak
CLEANFILES = .xml2po.mo $(EXTRA_DIST) $(addsuffix .xml,$(EXTRA_DIST))
endif