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 $@
|
|
|
|
|
2019-11-03 14:21:07 +05:30
|
|
|
messages.mo: ../po/$(LANG).po
|
|
|
|
msgfmt ../po/$(LANG).po -o messages.mo
|
|
|
|
|
|
|
|
login.defs.d:
|
|
|
|
ln -sf ../login.defs.d login.defs.d
|
|
|
|
|
|
|
|
%.xml: ../%.xml messages.mo login.defs.d
|
|
|
|
if grep -q SHADOW-CONFIG-HERE $< ; then \
|
|
|
|
sed -e 's/^<!-- SHADOW-CONFIG-HERE -->/<!ENTITY % config SYSTEM "config.xml">%config;/' $< > $@; \
|
|
|
|
else \
|
|
|
|
sed -e 's/^\(<!DOCTYPE .*docbookx.dtd"\)>/\1 [<!ENTITY % config SYSTEM "config.xml">%config;]>/' $< > $@; \
|
|
|
|
fi
|
|
|
|
itstool -d -l $(LANG) -m messages.mo -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
|
|
|
|
endif
|
2009-03-14 21:48:06 +05:30
|
|
|
|
2019-11-03 14:21:07 +05:30
|
|
|
CLEANFILES = messages.mo login.defs.d $(EXTRA_DIST) $(addsuffix .xml,$(EXTRA_DIST)) config.xml
|