From aed7fee527d9a2e4f1018bf366265eef36c35ae0 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Wed, 2 Apr 2025 14:08:22 +0200 Subject: [PATCH] gettextize: Fix last commit. * gettext-tools/m4/Makefile.am (OLD_M4_FILES): New variable. (uninstall-macros): Delete only these files from @aclocaldir@. --- gettext-tools/m4/Makefile.am | 47 +++++++++++++++++++++++++++++++++++- 1 file changed, 46 insertions(+), 1 deletion(-) diff --git a/gettext-tools/m4/Makefile.am b/gettext-tools/m4/Makefile.am index 684d4e0b1..ac3daf4ef 100644 --- a/gettext-tools/m4/Makefile.am +++ b/gettext-tools/m4/Makefile.am @@ -54,8 +54,53 @@ EXTRA_DIST = \ locale-de.m4 +# List of all file names that we ever stored in $(aclocaldir). +OLD_M4_FILES = \ + build-to-host.m4 \ + codeset.m4 \ + extern-inline.m4 \ + fcntl-o.m4 \ + gettext.m4 \ + glibc2.m4 \ + glibc21.m4 \ + host-cpu-c-abi.m4 \ + iconv.m4 \ + intdiv0.m4 \ + intl.m4 \ + intldir.m4 \ + intlmacosx.m4 \ + intmax.m4 \ + inttypes.m4 \ + inttypes-h.m4 \ + inttypes-pri.m4 \ + inttypes_h.m4 \ + isc-posix.m4 \ + lcmessage.m4 \ + lib-ld.m4 \ + lib-link.m4 \ + lib-prefix.m4 \ + lock.m4 \ + longdouble.m4 \ + longlong.m4 \ + nls.m4 \ + po.m4 \ + printf-posix.m4 \ + progtest.m4 \ + signed.m4 \ + size_max.m4 \ + stdint_h.m4 \ + threadlib.m4 \ + uintmax_t.m4 \ + ulonglong.m4 \ + visibility.m4 \ + wchar_t.m4 \ + wint_t.m4 \ + xsize.m4 + # We don't install the *.m4 files in $(aclocaldir) any more. install-data-local: uninstall-macros uninstall-local: uninstall-macros uninstall-macros: - rm -rf '$(DESTDIR)@aclocaldir@' + for f in $(OLD_M4_FILES); do \ + rm -f '$(DESTDIR)@aclocaldir@'/$$f; \ + done -- 2.47.3