summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2022-10-28 12:20:41 +0200
committerThomas Haller <thaller@redhat.com>2022-10-28 12:23:04 +0200
commitb2d1d147727503606caed0b459b37b0830682c06 (patch)
tree38afc40b75b2dc078c416dc2da1fc75846564d1d
parent0622ed7051e85ca47a369d564172448ee16ca70c (diff)
downloadNetworkManager-b2d1d147727503606caed0b459b37b0830682c06.tar.gz
build/autotools: adjust hack for gettext() for other Makefile versions
On rhel-8.7, we use a different gettext version, so the Makefile looks different. Adjust patch the source. Fixes: 7ee0da3eaffd ('build: don't "update-po" during make dist')
-rw-r--r--Makefile.am3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index e35813c443..0172acec1c 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -176,7 +176,8 @@ endif
# https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/1405
po/.Makefile.patched:
sed -i \
- 's#^dist2: \$$(srcdir)/stamp-po \$$(DISTFILES)#dist2: \$$(srcdir)/stamp-po\n\t\$$(MAKE) \$$(DISTFILES)#' \
+ -e 's#^dist2: \$$(srcdir)/stamp-po \$$(DISTFILES)#dist2: \$$(srcdir)/stamp-po\n\t\$$(MAKE) \$$(DISTFILES)#' \
+ -e 's#^dist2: stamp-po \$$(DISTFILES)#dist2: stamp-po\n\t\$$(MAKE) \$$(DISTFILES)#' \
"$(builddir)/po/Makefile" && \
touch "$(builddir)/po/.Makefile.patched"