summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDan Halbert <halbert@halwitz.org>2019-03-27 16:28:50 -0400
committerDan Halbert <halbert@halwitz.org>2019-03-27 16:28:50 -0400
commitb7a68a70209b16d7f9cda316a30584c136c4fc16 (patch)
treefff10d4708db32b20a964cb4e3dc7682cfb4ef7b /Makefile
parent94822ee2088960e6f68c9d4f05606cdb47c9ba5c (diff)
restrict 'make translate' to include only those directories we have ports
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 0c298f0ba..9b7a5a32c 100644
--- a/Makefile
+++ b/Makefile
@@ -29,6 +29,8 @@ ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(BASEOPTS)
# the i18n builder cannot share the environment and doctrees with the others
I18NSPHINXOPTS = $(BASEOPTS)
+TRANSLATE_SOURCES = extmod lib main.c ports/atmel-samd ports/nrf py shared-bindings shared-module supervisor
+
.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest gettext
help:
@@ -194,7 +196,7 @@ pseudoxml:
all-source:
locale/circuitpython.pot: all-source
- find . -iname "*.c" | xargs xgettext -L C -s --add-location=file --keyword=translate -o circuitpython.pot -p locale
+ find $(TRANSLATE_SOURCES) -iname "*.c" | xargs xgettext -L C -s --add-location=file --keyword=translate -o circuitpython.pot -p locale
translate: locale/circuitpython.pot
for po in $(shell ls locale/*.po); do msgmerge -U $$po -s --no-fuzzy-matching --add-location=file locale/circuitpython.pot; done