File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -226,8 +226,10 @@ pseudoxml:
226226.PHONY : all-source
227227all-source :
228228
229+ TRANSLATE_CHECK_SUBMODULES =if ! [ -f extmod/ulab/README.md ]; then python tools/ci_fetch_deps.py translate; fi
229230TRANSLATE_COMMAND =find $(TRANSLATE_SOURCES ) -type d \( $(TRANSLATE_SOURCES_EXC ) \) -prune -o -type f \( -iname "*.c" -o -iname "*.h" \) -print | (LC_ALL=C sort) | xgettext -x locale/synthetic.pot -f- -L C -s --add-location=file --keyword=MP_ERROR_TEXT -o - | sed -e '/"POT-Creation-Date: /d'
230231locale/circuitpython.pot : all-source
232+ $(TRANSLATE_CHECK_SUBMODULES )
231233 $(TRANSLATE_COMMAND ) > $@
232234
233235# Historically, `make translate` updated the .pot file and ran msgmerge.
@@ -253,6 +255,7 @@ merge-translate:
253255
254256.PHONY : check-translate
255257check-translate :
258+ $(TRANSLATE_CHECK_SUBMODULES )
256259 $(TRANSLATE_COMMAND ) > locale/circuitpython.pot.tmp
257260 $(PYTHON ) tools/check_translations.py locale/circuitpython.pot.tmp locale/circuitpython.pot; status=$$? ; rm -f locale/circuitpython.pot.tmp; exit $$ status
258261
@@ -325,6 +328,11 @@ clean-nrf:
325328clean-stm :
326329 $(MAKE ) -C ports/stm BOARD=feather_stm32f405_express clean
327330
331+ extmod/ulab/README.md : fetch-translate-submodules
332+
333+ .PHONY : fetch-translate-submodules
334+ fetch-translate-submodules :
335+ $(PYTHON ) tools/ci_fetch_deps.py translate
328336
329337.PHONY : fetch-all-submodules
330338fetch-all-submodules :
Original file line number Diff line number Diff line change @@ -159,6 +159,8 @@ def main(target):
159159 submodules = ["." , "frozen" ] # explicitly list frozen to get tags
160160 elif target == "scheduler" :
161161 submodules = ["extmod/ulab" , "lib/" , "tools/" ]
162+ elif target == "translate" :
163+ submodules = ["extmod/ulab" ]
162164 elif target == "tests" :
163165 submodules = [
164166 "extmod/ulab" ,
You can’t perform that action at this time.
0 commit comments