## Makefile for the gettext-runtime/man subdirectory of GNU gettext
## Copyright (C) 2001-2003, 2006 Free Software Foundation, Inc.
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation; either version 2, or (at your option)
## any later version.
##
## This program is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with this program; if not, write to the Free Software Foundation,
## Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
## Process this file with automake to produce Makefile.in.
VERSION = @VERSION@
AUTOMAKE_OPTIONS = 1.2 gnits
EXTRA_DIST =
# A manual page for each of the bin_PROGRAMS in src/Makefile.am.
man_aux = gettext.x ngettext.x envsubst.x
# Likewise, plus additional manual pages for the libintl functions.
# Depend on version.sh to get version number changes.
$(man_MAN1IN) $(man_MAN1OTHER): help2man $(top_srcdir)/../version.sh
# Update them also during "make dist", in order to propagate added command
# line options that were added, even if version.sh didn't change.
UPDATEMODE =
update-man1:
$(MAKE) $(man_MAN1IN) $(man_MAN1OTHER) UPDATEMODE=--update
$(MAKE)
# Hidden from automake, but really activated. Works around an automake-1.5 bug.
#distdir: update-man1
install-html-local:
$(mkdir_p) $(DESTDIR)$(htmldir)
for file in $(man_HTML); do \
if test -f $$file; then dir=.; else dir=$(srcdir); fi; \
$(INSTALL_DATA) $$dir/$$file $(DESTDIR)$(htmldir)/$$file; \
done
installdirs-html:
$(mkdir_p) $(DESTDIR)$(htmldir)
uninstall-html:
for file in $(man_HTML); do \
$(RM) $(DESTDIR)$(htmldir)/$$file; \
done