From b51a248a18db4857fea984c537895dbc2396bc52 Mon Sep 17 00:00:00 2001 From: Laborratte5 Date: Mon, 29 Apr 2024 23:53:06 +0200 Subject: [PATCH] build: fix do not compile main.py --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 42a64b5..6991fd7 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,7 @@ MICRO_PYTHON_FIRMWARE = ESP8266_GENERIC-20240222-v1.22.2.bin ESP_PORT = /dev/ttyUSB0 src/%.mpy: src/%.py - @for f in $?; do \ + @for f in $(filter-out src/main.py,$?); do \ echo Compile $$f; \ $(MPYCROSS) $$f; \ done @@ -23,7 +23,7 @@ flash_esp: erase_flash $(ESP_TOOL) --port $(ESP_PORT) --baud 460800 write_flash --flash_size=detect 0 $(MICRO_PYTHON_FIRMWARE) install: check src/*.mpy - @echo $(filter-out check,$?) + $(AMPY) --port $(ESP_PORT) put src/main.py @for f in $(filter-out check,$?); do \ echo Uploading $$f; \ $(AMPY) --port $(ESP_PORT) put $$f; \