Make po/Makefile work when builddir != srcdir.

This commit is contained in:
Bruno Haible 2002-01-07 17:41:34 +00:00
parent e462c5e279
commit a52a28f262
4 changed files with 12 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2002-01-05 Bruno Haible <bruno@clisp.org>
* gettext.m4 (AM_PO_SUBDIRS): Look for Rules-* files in the source dir,
not in the build dir.
2002-01-04 Bruno Haible <bruno@clisp.org>
* gettext.m4 (AM_GNU_GETTEXT): If no intl directory exists and GNU

View File

@ -379,7 +379,7 @@ AC_DEFUN([AM_PO_SUBDIRS],
fi
test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
for f in "$ac_dir"/Rules-*; do
for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
if test -f "$f"; then
case "$f" in
*.orig | *.bak | *~) ;;

View File

@ -1,3 +1,8 @@
2002-01-05 Bruno Haible <bruno@clisp.org>
* Rules-quot (.insert-header.po-update-en): Set GETTEXTLIBDIR to an
absolute path, not a relative path.
2002-01-05 Bruno Haible <bruno@clisp.org>
* Makefile.in.in ($(DOMAIN).pot-update): Renamed from target

View File

@ -9,7 +9,7 @@ en@boldquot.po-update: en@boldquot.po-update-en
.insert-header.po-update-en:
@lang=`echo $@ | sed -e 's/\.po-update-en$$//'`; \
if test "$(PACKAGE)" = "gettext"; then PATH=`pwd`/../src:$$PATH; GETTEXTLIBDIR=$(top_srcdir)/src; export GETTEXTLIBDIR; fi; \
if test "$(PACKAGE)" = "gettext"; then PATH=`pwd`/../src:$$PATH; GETTEXTLIBDIR=`cd $(top_srcdir)/src && pwd`; export GETTEXTLIBDIR; fi; \
tmpdir=`pwd`; \
echo "$$lang:"; \
ll=`echo $$lang | sed -e 's/@.*//'`; \