aboutsummaryrefslogtreecommitdiff
path: root/po/doc/local.mk
diff options
context:
space:
mode:
Diffstat (limited to 'po/doc/local.mk')
-rw-r--r--po/doc/local.mk9
1 files changed, 6 insertions, 3 deletions
diff --git a/po/doc/local.mk b/po/doc/local.mk
index 2fa604340b..97db02ab61 100644
--- a/po/doc/local.mk
+++ b/po/doc/local.mk
@@ -41,20 +41,23 @@ EXTRA_DIST = \
$(DOC_PO_FILES) \
$(DOC_COOKBOOK_PO_FILES)
-%D%/%.pot: $(srcdir)/doc/%.texi
+%D%:
+ $(AM_V_GEN)$(MKDIR_P) $@
+
+%D%/%.pot: $(srcdir)/doc/%.texi | %D%
$(AM_V_PO4A)$(PO4A) --no-translations -M UTF-8 \
--package-version "$(VERSION)" \
--variable master="$<" \
--variable pot="$@-t" \
--variable po=/dev/null \
--variable localized=/dev/null \
- $(POT_OPTIONS) %D%/po4a.cfg
+ $(POT_OPTIONS) $(srcdir)/%D%/po4a.cfg
date="$$(git log --pretty=format:%ci -n 1 -- $< 2>/dev/null \
|| echo $(SOURCE_DATE_EPOCH))" \
sed -ri -e "s,^(.POT-Creation-Date: )[^\]*,\1$$date," "$@-t"
mv "$@-t" "$@"
-%D%/guix-manual.pot: %D%/guix.pot %D%/contributing.pot
+%D%/guix-manual.pot: %D%/guix.pot %D%/contributing.pot | %D%
msgcat $^ > "$@-t"
date="$$(git log --pretty=format:%ci -n 1 -- $< 2>/dev/null \
|| echo $(SOURCE_DATE_EPOCH))" \