From 5a8c3abd49fbcb0da1e042c95a48b7a653f8fb66 Mon Sep 17 00:00:00 2001 From: Laborratte5 Date: Mon, 29 Apr 2024 23:06:02 +0200 Subject: [PATCH] build: fix compilation of multiple files --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 911c488..a805fc3 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,10 @@ MICRO_PYTHON_FIRMWARE = ESP8266_GENERIC-20240222-v1.22.2.bin ESP_PORT = /dev/ttyUSB0 src/%.mpy: src/%.py - $(MPYCROSS) $< + @for f in $?; do \ + echo Compile $$f; \ + $(MPYCROSS) $$f; \ + done check: src/*.mpy $(VENV) python3 -m py_compile src/*.py