summaryrefslogtreecommitdiff
path: root/help/Makefile.in
diff options
context:
space:
mode:
Diffstat (limited to 'help/Makefile.in')
-rw-r--r--help/Makefile.in25
1 files changed, 21 insertions, 4 deletions
diff --git a/help/Makefile.in b/help/Makefile.in
index 6920b3c..248730a 100644
--- a/help/Makefile.in
+++ b/help/Makefile.in
@@ -313,10 +313,10 @@ DOC_PAGES = index.page \
scanner.page \
scanning.page
-DOC_LINGUAS =
-DISTCLEANFILES = \
- Makefile.in
-
+DOC_LINGUAS = POT $(REAL_LINGUAS)
+DISTCLEANFILES = translations/simple-scan-help.pot
+REAL_LINGUAS = de
+EXTRA_DIST = translations po.stamp
all: all-am
.SUFFIXES:
@@ -920,6 +920,23 @@ uninstall-doc-omf:
dist-hook: doc-dist-hook
+$(_DOC_LC_DOCS) : po.stamp
+
+po.stamp: $(wildcard translations/*.po)
+ for p in $?; do $(mkdir_p) $$(basename $$p .po)/; \
+ cp -a $$p $$(basename $$p .po)/; done
+ touch $@
+
+update-pot: translations/simple-scan-help.pot
+POT/POT.po: $(foreach page,$(DOC_PAGES),C/$(page))
+translations/simple-scan-help.pot: POT/POT.po
+ $(mkdir_p) $(dir $@)
+ sed 's|^#: /.*/\(.*\)|#: \1|g' $^ > $@
+
+dist-hook: doc-dist-hook
+
+.PHONY: update-pot
+
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT: