]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
po-man: enable out of tree builds
authorThomas Weißschuh <thomas@t-8ch.de>
Fri, 6 Jan 2023 14:54:14 +0000 (14:54 +0000)
committerThomas Weißschuh <thomas@t-8ch.de>
Sat, 7 Jan 2023 03:00:58 +0000 (03:00 +0000)
po-man/Makefile.am

index 99c22aa929e1a6131d054b5c453d7fd2e8473363..ea9103877e159383b3e2bf4de528d6ac8330bbc7 100644 (file)
@@ -14,7 +14,7 @@ util-linux-man.pot: Makefile
 
 po4a-gen.stamp: $(PO_FILES)
        @echo 'po4a: generate man-pages translations'
-       $(AM_V_GEN) $(PO4A) po4a.cfg
+       $(AM_V_GEN) $(PO4A) --srcdir $(srcdir) $(srcdir)/po4a.cfg
        @touch po4a-gen.stamp
 
 # We need to call po4a --force only on 'make dist', otherwise .po and .pot
@@ -24,7 +24,7 @@ po4a-gen.stamp: $(PO_FILES)
 # only.
 util-linux-man.pot:
        @echo 'po4a: force pot-update'
-       $(AM_V_GEN) $(PO4A) --force po4a.cfg
+       $(AM_V_GEN) $(PO4A) --force --srcdir $(srcdir) $(srcdir)/po4a.cfg
 
 gen-trans: $(PO_STAMPS)