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:
226
226
.PHONY : all-source
227
227
all-source :
228
228
229
+ TRANSLATE_CHECK_SUBMODULES =if ! [ -f extmod/ulab/README.md ]; then python tools/ci_fetch_deps.py translate; fi
229
230
TRANSLATE_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'
230
231
locale/circuitpython.pot : all-source
232
+ $(TRANSLATE_CHECK_SUBMODULES )
231
233
$(TRANSLATE_COMMAND ) > $@
232
234
233
235
# Historically, `make translate` updated the .pot file and ran msgmerge.
@@ -253,6 +255,7 @@ merge-translate:
253
255
254
256
.PHONY : check-translate
255
257
check-translate :
258
+ $(TRANSLATE_CHECK_SUBMODULES )
256
259
$(TRANSLATE_COMMAND ) > locale/circuitpython.pot.tmp
257
260
$(PYTHON ) tools/check_translations.py locale/circuitpython.pot.tmp locale/circuitpython.pot; status=$$? ; rm -f locale/circuitpython.pot.tmp; exit $$ status
258
261
@@ -325,6 +328,11 @@ clean-nrf:
325
328
clean-stm :
326
329
$(MAKE ) -C ports/stm BOARD=feather_stm32f405_express clean
327
330
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
328
336
329
337
.PHONY : fetch-all-submodules
330
338
fetch-all-submodules :
Original file line number Diff line number Diff line change @@ -159,6 +159,8 @@ def main(target):
159
159
submodules = ["." , "frozen" ] # explicitly list frozen to get tags
160
160
elif target == "scheduler" :
161
161
submodules = ["extmod/ulab" , "lib/" , "tools/" ]
162
+ elif target == "translate" :
163
+ submodules = ["extmod/ulab" ]
162
164
elif target == "tests" :
163
165
submodules = [
164
166
"extmod/ulab" ,
You can’t perform that action at this time.
0 commit comments