From: Bruno Haible Date: Fri, 6 Dec 2024 22:25:01 +0000 (+0100) Subject: build: No more need to rebuild a Makefile after POTFILES.in or LINGUAS changed. X-Git-Tag: v0.24~119 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=165d7d49bd453b045db40f92394f67ee61da86e4;p=thirdparty%2Fgettext.git build: No more need to rebuild a Makefile after POTFILES.in or LINGUAS changed. * gettext-runtime/m4/po.m4 (AM_PO_SUBDIRS): Don't set or substitute POMAKEFILEDEPS. (AM_POSTPROCESS_PO_MAKEFILE): Remove dependency from Makefile on LINGUAS. * gettext-runtime/po/Makefile.in.in (Makefile): Remove dependency on @POMAKEFILEDEPS@. --- diff --git a/gettext-runtime/m4/po.m4 b/gettext-runtime/m4/po.m4 index 53ee71f7f..1c1d11cfc 100644 --- a/gettext-runtime/m4/po.m4 +++ b/gettext-runtime/m4/po.m4 @@ -127,12 +127,8 @@ changequote([,])dnl # POTFILES.in file. This allows packages to have multiple PO # directories under different names or in different locations. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then - POMAKEFILEDEPS="POTFILES.in" - if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then - POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" - fi test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" - sed -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" + sed -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do if test -f "$f"; then case "$f" in @@ -151,22 +147,7 @@ changequote([,])dnl dnl Postprocesses a Makefile in a directory containing PO files. AC_DEFUN([AM_POSTPROCESS_PO_MAKEFILE], [ -changequote(,)dnl - # Adjust a relative srcdir. - ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` -changequote([,])dnl - - POMAKEFILEDEPS="" - if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then - POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" - fi - sed -e 's,^#distdir:,distdir:,' < "$ac_file" > "$ac_file.tmp" - if test -n "$POMAKEFILEDEPS"; then - cat >> "$ac_file.tmp" <