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
|
2023-02-07 14:04:59 +05:30
|
|
|
msgfmt $< -o messages.mo
|
2019-11-03 14:21:07 +05:30
|
|
|
|
|
|
|
login.defs.d:
|
2023-02-07 14:04:59 +05:30
|
|
|
ln -sf $(srcdir)/../login.defs.d login.defs.d
|
2019-11-03 14:21:07 +05:30
|
|
|
|
|
|
|
%.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
|
2023-05-09 18:26:38 +05:30
|
|
|
itstool -i ../its.rules -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
|