SUBDIRS = gnulib-local gettext-runtime gettext-tools
EXTRA_DIST = \
- DEPENDENCIES PACKAGING HACKING ChangeLog.0 autogen.sh update-po.sh \
+ DEPENDENCIES PACKAGING HACKING ChangeLog.0 autogen.sh \
build-aux/ac-help.sed build-aux/moopp \
m4/fixautomake.m4 m4/woe32-dll.m4 \
m4/libtool.m4
echo $(VERSION) > $@-t && mv $@-t $@
dist-hook:
echo $(VERSION) > $(distdir)/.tarball-version
+
+# PO files update.
+
+maintainer-update-po-local: $(top_builddir)/config.status
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# This script populates the build infrastructure in the source tree
-# checked-out from VCS. To regenerate other materials, such as PO
-# files and manual pages, use update-po.sh.
+# checked-out from VCS.
#
# This script requires:
# - Autoconf
AC_CONFIG_SUBDIRS([gettext-runtime gettext-tools])
+AM_EXTRA_RECURSIVE_TARGETS([maintainer-update-po])
+
dnl Ensure that "configure --help" lists all the command line options that
dnl are usable with the subdir configures. Really AC_CONFIG_SUBDIRS should
dnl do it by itself.
# Woe32 support.
EXTRA_DIST += README.woe32
+
+maintainer-update-po: $(top_builddir)/config.status
+ $(SHELL) ./config.status --recheck
+ $(SHELL) ./config.status po/Makefile.in po-directories
+ cd po && $(MAKE) update-po
# groff 1.17 or newer.
MAN2HTML = groff -mandoc -Thtml
+UPDATEMODE =
+
# We distribute both the man pages and their HTML equivalent.
# The user can generate the parts, via
sed -e 's|@''localedir''@|$(localedir)|g' < `if test -f ngettext.1.in; then echo .; else echo $(srcdir); fi`/ngettext.1.in > t-$@
mv t-$@ $@
-gettext.1.in: gettext.x
+gettext.1.in: gettext.x ../src/gettext$(EXEEXT)
IN_HELP2MAN=1 $(SHELL) x-to-1 $(UPDATEMODE) "$(PERL)" "$(HELP2MAN)" ../src/gettext$(EXEEXT) $(srcdir)/gettext.x gettext.1.in
-ngettext.1.in: ngettext.x
+ngettext.1.in: ngettext.x ../src/ngettext$(EXEEXT)
IN_HELP2MAN=1 $(SHELL) x-to-1 $(UPDATEMODE) "$(PERL)" "$(HELP2MAN)" ../src/ngettext$(EXEEXT) $(srcdir)/ngettext.x ngettext.1.in
-envsubst.1: envsubst.x
+envsubst.1: envsubst.x ../src/envsubst$(EXEEXT)
$(SHELL) x-to-1 $(UPDATEMODE) "$(PERL)" "$(HELP2MAN)" ../src/envsubst$(EXEEXT) $(srcdir)/envsubst.x envsubst.1
$(man_MAN1IN) $(man_MAN1OTHER): help2man $(top_srcdir)/../.version
-# Update them also during "make dist", in order to propagate added command
-# line options that were added, even if .version 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
-
gettext.3: gettext.3.in $(top_srcdir)/../.version
sed -e 's/@''VERSION''@/@VERSION@/g' < $(srcdir)/gettext.3.in > t-$@
mv t-$@ $@
# Cygwin support.
EXTRA_DIST += woe32dll/export.h
+
+maintainer-update-po: $(top_builddir)/config.status
+ $(SHELL) ./config.status --recheck
+ $(SHELL) ./config.status po/Makefile.in po-directories
+ cd po && $(MAKE) update-po
+ cd examples && $(MAKE) maintainer-update-po
# Temporary directories created by po/Makefile.
clean-local:
-rm -rf tmp-hello-*
+
+maintainer-update-po: $(top_builddir)/config.status
+ $(SHELL) ./config.status --recheck
+ $(SHELL) ./config.status po/Makefile
+ cd po && $(MAKE) update-po
# groff 1.17 or newer.
MAN2HTML = groff -mandoc -Thtml
+UPDATEMODE =
+
# We distribute both the man pages and their HTML equivalent.
# The user can generate the parts, via
# The progname.x files contain some extra information not found in the
# "progname --help" output.
-msgcmp.1: msgcmp.x
+msgcmp.1: msgcmp.x ../src/msgcmp$(EXEEXT)
$(SHELL) x-to-1 $(UPDATEMODE) "$(PERL)" "$(HELP2MAN)" ../src/msgcmp$(EXEEXT) $(srcdir)/msgcmp.x msgcmp.1
-msgfmt.1: msgfmt.x
+msgfmt.1: msgfmt.x ../src/msgfmt$(EXEEXT)
$(SHELL) x-to-1 $(UPDATEMODE) "$(PERL)" "$(HELP2MAN)" ../src/msgfmt$(EXEEXT) $(srcdir)/msgfmt.x msgfmt.1
-msgmerge.1: msgmerge.x
+msgmerge.1: msgmerge.x ../src/msgmerge$(EXEEXT)
$(SHELL) x-to-1 $(UPDATEMODE) "$(PERL)" "$(HELP2MAN)" ../src/msgmerge$(EXEEXT) $(srcdir)/msgmerge.x msgmerge.1
-msgunfmt.1: msgunfmt.x
+msgunfmt.1: msgunfmt.x ../src/msgunfmt$(EXEEXT)
$(SHELL) x-to-1 $(UPDATEMODE) "$(PERL)" "$(HELP2MAN)" ../src/msgunfmt$(EXEEXT) $(srcdir)/msgunfmt.x msgunfmt.1
-xgettext.1: xgettext.x
+xgettext.1: xgettext.x ../src/xgettext$(EXEEXT)
$(SHELL) x-to-1 $(UPDATEMODE) "$(PERL)" "$(HELP2MAN)" ../src/xgettext$(EXEEXT) $(srcdir)/xgettext.x xgettext.1
-msgattrib.1: msgattrib.x
+msgattrib.1: msgattrib.x ../src/msgattrib$(EXEEXT)
$(SHELL) x-to-1 $(UPDATEMODE) "$(PERL)" "$(HELP2MAN)" ../src/msgattrib$(EXEEXT) $(srcdir)/msgattrib.x msgattrib.1
-msgcat.1: msgcat.x
+msgcat.1: msgcat.x ../src/msgcat$(EXEEXT)
$(SHELL) x-to-1 $(UPDATEMODE) "$(PERL)" "$(HELP2MAN)" ../src/msgcat$(EXEEXT) $(srcdir)/msgcat.x msgcat.1
-msgcomm.1: msgcomm.x
+msgcomm.1: msgcomm.x ../src/msgcomm$(EXEEXT)
$(SHELL) x-to-1 $(UPDATEMODE) "$(PERL)" "$(HELP2MAN)" ../src/msgcomm$(EXEEXT) $(srcdir)/msgcomm.x msgcomm.1
-msgconv.1: msgconv.x
+msgconv.1: msgconv.x ../src/msgconv$(EXEEXT)
$(SHELL) x-to-1 $(UPDATEMODE) "$(PERL)" "$(HELP2MAN)" ../src/msgconv$(EXEEXT) $(srcdir)/msgconv.x msgconv.1
-msgen.1: msgen.x
+msgen.1: msgen.x ../src/msgen$(EXEEXT)
$(SHELL) x-to-1 $(UPDATEMODE) "$(PERL)" "$(HELP2MAN)" ../src/msgen$(EXEEXT) $(srcdir)/msgen.x msgen.1
-msgexec.1: msgexec.x
+msgexec.1: msgexec.x ../src/msgexec$(EXEEXT)
$(SHELL) x-to-1 $(UPDATEMODE) "$(PERL)" "$(HELP2MAN)" ../src/msgexec$(EXEEXT) $(srcdir)/msgexec.x msgexec.1
-msgfilter.1: msgfilter.x
+msgfilter.1: msgfilter.x ../src/msgfilter$(EXEEXT)
$(SHELL) x-to-1 $(UPDATEMODE) "$(PERL)" "$(HELP2MAN)" ../src/msgfilter$(EXEEXT) $(srcdir)/msgfilter.x msgfilter.1
-msggrep.1: msggrep.x
+msggrep.1: msggrep.x ../src/msggrep$(EXEEXT)
$(SHELL) x-to-1 $(UPDATEMODE) "$(PERL)" "$(HELP2MAN)" ../src/msggrep$(EXEEXT) $(srcdir)/msggrep.x msggrep.1
-msginit.1: msginit.x
+msginit.1: msginit.x ../src/msginit$(EXEEXT)
$(SHELL) x-to-1 $(UPDATEMODE) "$(PERL)" "$(HELP2MAN)" ../src/msginit$(EXEEXT) $(srcdir)/msginit.x msginit.1
-msguniq.1: msguniq.x
+msguniq.1: msguniq.x ../src/msguniq$(EXEEXT)
$(SHELL) x-to-1 $(UPDATEMODE) "$(PERL)" "$(HELP2MAN)" ../src/msguniq$(EXEEXT) $(srcdir)/msguniq.x msguniq.1
-recode-sr-latin.1: recode-sr-latin.x
+recode-sr-latin.1: recode-sr-latin.x ../src/recode-sr-latin$(EXEEXT)
$(SHELL) x-to-1 $(UPDATEMODE) "$(PERL)" "$(HELP2MAN)" ../src/recode-sr-latin$(EXEEXT) $(srcdir)/recode-sr-latin.x recode-sr-latin.1
-gettextize.1: gettextize.x
+gettextize.1: gettextize.x ../misc/gettextize
$(SHELL) x-to-1 $(UPDATEMODE) "$(PERL)" "$(HELP2MAN)" ../misc/gettextize $(srcdir)/gettextize.x gettextize.1
-autopoint.1: autopoint.x
+autopoint.1: autopoint.x ../misc/autopoint
$(SHELL) x-to-1 $(UPDATEMODE) "$(PERL)" "$(HELP2MAN)" ../misc/autopoint $(srcdir)/autopoint.x autopoint.1
$(man_MAN1): help2man $(top_srcdir)/../.version
-# Update them also during "make dist", in order to propagate added command
-# line options that were added, even if .version didn't change.
-UPDATEMODE =
-update-man1:
- $(MAKE) $(man_MAN1) UPDATEMODE=--update
- $(MAKE)
-# Hidden from automake, but really activated. Works around an automake-1.5 bug.
-#distdir: update-man1
-
# Man pages in HTML format.
tests/test-term-ostream-xterm-16color.out \
tests/test-term-ostream-xterm-88color.out \
tests/test-term-ostream-xterm-256color.out
+
+maintainer-update-po:
+++ /dev/null
-#!/bin/sh
-# Copyright (C) 2003-2014 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 3 of the License, 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, see <http://www.gnu.org/licenses/>.
-
-# This script regenerates materials included in the released tarball,
-# such as PO files and manual pages.
-#
-# Before running this script, you need to have both gettext-runtime
-# and gettext-tools built in the source tree. Parallel build trees
-# are not supported.
-#
-# Usage: ./update-po.sh
-
-# Nuisances.
-(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
-
-test -f gettext-runtime/config.status \
- && test -f gettext-tools/config.status \
- && test -f gettext-tools/examples/config.status \
- || { echo "$0: *** build the source before running this script"; exit 1; }
-
-# Adjust the gettext_datadir and PATH envvars and run config.status
-# --recheck to prefer the included version of gettext-tools to the
-# installed version.
-prepend_path=
-case ${gettext_builddir--} in
- -)
- gettext_builddir=$PWD/gettext-tools/src
- prepend_path="$gettext_builddir:$prepend_path"
- ;;
-esac
-
-case ${gettext_datadir--} in
- -)
- gettext_datadir=$PWD/gettext-tools/misc
- export gettext_datadir
- prepend_path="$gettext_datadir:$prepend_path"
- ;;
-esac
-
-test -n "$prepend_path" && PATH="$prepend_path:$PATH"
-export PATH
-
-echo "$0: updating PO files in gettext-runtime..."
-(cd gettext-runtime \
- && ./config.status --recheck \
- && ./config.status po/Makefile.in po-directories \
- && (cd po && make update-po)) || exit $?
-
-echo "$0: updating PO files in gettext-tools..."
-(cd gettext-tools \
- && ./config.status --recheck \
- && ./config.status po/Makefile.in po-directories \
- && (cd po && make update-po)) || exit $?
-
-echo "$0: updating manual pages in gettext-tools..."
-(cd gettext-tools/man && make update-man1) || exit $?
-
-echo "$0: updating PO files in gettext-tools/examples..."
-(cd gettext-tools/examples \
- && ./config.status --recheck \
- && ./config.status po/Makefile \
- && (cd po && make update-po)) || exit $?