build: fix compilation of multiple files
This commit is contained in:
parent
1e912789ad
commit
5a8c3abd49
1 changed files with 4 additions and 1 deletions
5
Makefile
5
Makefile
|
|
@ -8,7 +8,10 @@ MICRO_PYTHON_FIRMWARE = ESP8266_GENERIC-20240222-v1.22.2.bin
|
||||||
ESP_PORT = /dev/ttyUSB0
|
ESP_PORT = /dev/ttyUSB0
|
||||||
|
|
||||||
src/%.mpy: src/%.py
|
src/%.mpy: src/%.py
|
||||||
$(MPYCROSS) $<
|
@for f in $?; do \
|
||||||
|
echo Compile $$f; \
|
||||||
|
$(MPYCROSS) $$f; \
|
||||||
|
done
|
||||||
|
|
||||||
check: src/*.mpy
|
check: src/*.mpy
|
||||||
$(VENV) python3 -m py_compile src/*.py
|
$(VENV) python3 -m py_compile src/*.py
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue