From: Craig Small Date: Thu, 21 Jan 2021 10:58:48 +0000 (+1100) Subject: build-sys: One more man-po build fix X-Git-Tag: v3.3.17rc1~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e0e88bc0565aae044256b1c93d006417d4c664b6;p=procps-ng build-sys: One more man-po build fix --- diff --git a/man-po/Makefile.am b/man-po/Makefile.am index 240ef4be..97f111ab 100644 --- a/man-po/Makefile.am +++ b/man-po/Makefile.am @@ -35,7 +35,9 @@ EXTRA_DIST = po4a.cfg \ procps-man.pot \ $(translated_MANS) -LINGUAS_DIST=$(subst .po,,$(wildcard $(srcdir)/*.po)) +# Extract the list of languages from the po4a config file. +LINGUAS_DIST = $(shell sed -ne 's/^.*\[po4a_langs\] \(.*\)$$/\1/p' $(srcdir)/po4a.cfg) + # If the user has not defined it let's use the default. LINGUAS ?= $(LINGUAS_DIST)