LANG=$(notdir $(CURDIR)) if ENABLE_REGENERATE_MAN config.xml: ../config.xml.in $(MAKE) -C .. config.xml cp ../config.xml $@ messages.mo: ../po/$(LANG).po msgfmt $< -o messages.mo login.defs.d: ln -sf $(srcdir)/../login.defs.d login.defs.d %.xml: ../%.xml messages.mo login.defs.d if grep -q SHADOW-CONFIG-HERE $< ; then \ sed -e 's/^/%config;/' $< > $@; \ else \ sed -e 's/^\(/\1 [%config;]>/' $< > $@; \ fi itstool -d -l $(LANG) -m messages.mo -o . $@ sed -i 's:\(^:\1 lang="$(LANG)">:' $@ include ../generate_mans.mak else $(man_MANS): @echo you need to run configure with --enable-man to generate man pages endif CLEANFILES = messages.mo login.defs.d $(EXTRA_DIST) $(addsuffix .xml,$(EXTRA_DIST)) config.xml