Added dummy Makefile.am in doc.

Added Makefile.am in doc/man which supports multilanguage man pages
install/uninstall.

If there is a new man page language available create a subdir named after the lang and append it's name to MAN_LANG here.
This commit is contained in:
Jon Daniel 2005-01-20 00:31:25 +00:00
parent b5bb8da06b
commit 97f940914e
2 changed files with 23 additions and 0 deletions

1
doc/Makefile.am Normal file
View file

@ -0,0 +1 @@
SUBDIRS = man

22
doc/man/Makefile.am Normal file
View file

@ -0,0 +1,22 @@
MAN_LANG = de
dist_man6_MANS = wesnoth.6 wesnothd.6 wesnoth_editor.6
install-data-hook:
for i in $(MAN_LANG); do \
mkdir -p $(mandir)/$$i/man6 ; \
for j in $(dist_man6_MANS); do \
$(INSTALL) -c -m 644 $$i/$$j $(mandir)/$$i/man6/$$j ; \
done \
done
uninstall-hook:
for i in $(MAN_LANG); do \
for j in $(dist_man6_MANS); do \
rm -f $(mandir)/$$i/man6/$$j ; \
done ; \
if test -d $(mandir)/$$i/man6 ; then echo `rmdir $(mandir)/$$i/man6` ; fi ; \
if test -d $(mandir)/$$i ; then echo `rmdir $(mandir)/$$i` ; fi ; \
done
if test -d $(mandir)/man6 ; then echo `rmdir $(mandir)/man6` ; fi
if test -d $(mandir) ; then echo `rmdir $(mandir)` ; fi