]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
build: Include Makevars at 'make' time, not at 'configure' time.
authorBruno Haible <bruno@clisp.org>
Sat, 7 Dec 2024 08:40:00 +0000 (09:40 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 7 Dec 2024 08:40:00 +0000 (09:40 +0100)
* gettext-runtime/m4/po.m4 (AM_PO_SUBDIRS): Don't splice in Makevars here.
* gettext-runtime/po/Makefile.in.in: Include Makevars explicitly.

gettext-runtime/m4/po.m4
gettext-runtime/po/Makefile.in.in

index 1c1d11cfc7b325f56e6d8bc4f345010023519266..0d23782f90f1de6fe061e9fb02a4870d400c5f35 100644 (file)
@@ -128,7 +128,7 @@ changequote([,])dnl
         # directories under different names or in different locations.
         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
           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" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
+          cat "$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
index 04ad6c297a75fe16525e96de0d39e2afa890a782..2d87ff8c142b51fc97bace9963c299e3e1042fe5 100644 (file)
@@ -134,7 +134,8 @@ DISTFILESDEPS_yes = $(DISTFILESDEPS_)
 DISTFILESDEPS_no =
 DISTFILESDEPS = $(DISTFILESDEPS_$(DIST_DEPENDS_ON_UPDATE_PO))
 
-# Makevars gets inserted here. (Don't remove this line!)
+# Include the customization of this po/ directory.
+include $(srcdir)/Makevars
 
 all: all-@USE_NLS@