From: Karel Zak Date: Wed, 16 Mar 2022 16:15:30 +0000 (+0100) Subject: build-sys: (po-man) force .pot file update on 'make dist' X-Git-Tag: v2.38-rc4~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0004332423348cdeb7894a55c0293d8cec6f2718;p=thirdparty%2Futil-linux.git build-sys: (po-man) force .pot file update on 'make dist' Signed-off-by: Karel Zak --- diff --git a/po-man/Makefile.am b/po-man/Makefile.am index 212e113744..99c22aa929 100644 --- a/po-man/Makefile.am +++ b/po-man/Makefile.am @@ -17,6 +17,15 @@ po4a-gen.stamp: $(PO_FILES) $(AM_V_GEN) $(PO4A) po4a.cfg @touch po4a-gen.stamp +# We need to call po4a --force only on 'make dist', otherwise .po and .pot +# files has to be unmodified. This update has to be done before 'make' copies +# sources to the $distdir. $EXTRA_DIST (where is util-linux-man.pot) is used as +# a dependence for 'distdir' automake target, so it's trigered by "make dist*" +# only. +util-linux-man.pot: + @echo 'po4a: force pot-update' + $(AM_V_GEN) $(PO4A) --force po4a.cfg + gen-trans: $(PO_STAMPS) asciidoc_man_cmd = $(ASCIIDOCTOR) \