From: Bruno Haible Date: Sat, 7 Dec 2024 09:50:58 +0000 (+0100) Subject: build: Include the Rules-* files at 'make' time, not at 'configure' time. X-Git-Tag: v0.24~116 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=093af64345f44aba62b2df8fe165c53c6197b1c8;p=thirdparty%2Fgettext.git build: Include the Rules-* files at 'make' time, not at 'configure' time. * gettext-runtime/m4/po.m4 (AM_PO_SUBDIRS): Don't splice in the Rules-* files here. * gettext-runtime/po/Makefile.in.in: Collect and include the Rules-* files explicitly. --- diff --git a/gettext-runtime/m4/po.m4 b/gettext-runtime/m4/po.m4 index 0d23782f9..73e0436bd 100644 --- a/gettext-runtime/m4/po.m4 +++ b/gettext-runtime/m4/po.m4 @@ -129,14 +129,6 @@ changequote([,])dnl 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" 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 - *.orig | *.bak | *~) ;; - *) cat "$f" >> "$ac_dir/Makefile" ;; - esac - fi - done fi ;; esac diff --git a/gettext-runtime/po/Makefile.in.in b/gettext-runtime/po/Makefile.in.in index 4437db0a5..613e34787 100644 --- a/gettext-runtime/po/Makefile.in.in +++ b/gettext-runtime/po/Makefile.in.in @@ -550,6 +550,19 @@ $(DUMMYPOFILES): update-gmo: Makefile $(GMOFILES) @: +# Include all the Rules-* extensions. Documented in +# +RULES_FILES != cd $(srcdir) \ + && for file in Rules-*; do \ + if test -f "$$file"; then \ + case "$$file" in \ + *.orig | *.bak | *~) ;; \ + *) echo $(srcdir)/"$$file" ;; \ + esac; \ + fi; \ + done +include $(RULES_FILES) + # Recreate Makefile by invoking config.status. Explicitly invoke the shell, # because execution permission bits may not work on the current file system. # Use @SHELL@, which is the shell determined by autoconf for the use by its