]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Make po/Makefile work when builddir != srcdir.
authorBruno Haible <bruno@clisp.org>
Mon, 7 Jan 2002 17:41:34 +0000 (17:41 +0000)
committerBruno Haible <bruno@clisp.org>
Sun, 21 Jun 2009 22:35:59 +0000 (00:35 +0200)
m4/ChangeLog
m4/gettext.m4
po/ChangeLog
po/Rules-quot

index 317a05697950be4b8382bbee0604e8db40fc24a0..7b4c9d3e8945cceaa07b66505b3c7880e3668efd 100644 (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
index e59f46660c80ec86eea2abb2ca38dad898746e13..8ffba956cb2202b75a8fbf996e02a7addeca0769 100644 (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 | *~) ;;
index 68eb62ee19b7c5430f94eadbdedb37e5feb19554..0f94c2e29ea2cfdca1215d869c0b61bf0dbebf11 100644 (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
index 132e94fcbca023507119493f8762c746a4aa977f..5f46d237d2593c674ab34518cf342553fe0f6aef 100644 (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/@.*//'`; \