From 66d0062fabddf32e9cb663b621aca98ca14a9861 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Mon, 17 Feb 2025 18:38:11 +0100 Subject: [PATCH] autotools: update po-man files on make dist Signed-off-by: Karel Zak --- Makefile.am | 2 +- po-man/Makemodule.am | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 8ea3eb16e..f5d92e44a 100644 --- a/Makefile.am +++ b/Makefile.am @@ -272,7 +272,7 @@ gen-man: $(man_MANS) gen-poman # Standard "make" follows BUILD_* macros from ./configure, and in this case, it # ignores man pages for disabled tools, but for distribution tarball, we need # to generate all man-pages (to avoid dependence on asciidoc). [kzak Jan-2022] -gen-man-dist: +gen-man-dist: gen-poman-dist @list=`find -name *.adoc -not -path "*/man-common/*" -not -path "*/po-man/*" | sed -e 's/\.adoc//g'`; \ missing=`for p in $$list; do test -f $$p || echo $$p; done`; \ if test -n "$$missing"; then \ diff --git a/po-man/Makemodule.am b/po-man/Makemodule.am index e9cc7ec3a..7fac572d2 100644 --- a/po-man/Makemodule.am +++ b/po-man/Makemodule.am @@ -31,6 +31,13 @@ po4a-gen.stamp: $(POMAN_PO_FILES) $(ADOCFILES_COMMON) $(ADOCFILES) @$(asciidoc_poman_translate_cmd) $(ADOCFILES) @touch po4a-gen.stamp +gen-poman-dist: + @echo "Updating po-man PO and POT files" + @$(PO4A) --no-translations --force \ + --srcdir '$(abs_srcdir)/po-man' \ + --destdir '$(abs_srcdir)/po-man' \ + '$(abs_srcdir)/po-man/po4a.cfg' + gen-poman: $(PO_STAMPS) install-data-hook-poman: @@ -51,6 +58,7 @@ CLEAN_LOCALS += clean-local-hook-poman # !ENABLE_POMAN else gen-poman: +gen-poman-dist: endif # ENABLE_ASCIIDOC -- 2.47.3