]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
build-sys: (po-man) force .pot file update on 'make dist'
authorKarel Zak <kzak@redhat.com>
Wed, 16 Mar 2022 16:15:30 +0000 (17:15 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 16 Mar 2022 16:15:30 +0000 (17:15 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
po-man/Makefile.am

index 212e113744428de77c5c6938d02a68029879bf2d..99c22aa929e1a6131d054b5c453d7fd2e8473363 100644 (file)
@@ -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) \