diff --git a/pico/Makefile b/pico/Makefile index beac495..c7ff872 100644 --- a/pico/Makefile +++ b/pico/Makefile @@ -1,7 +1,8 @@ SRC_DIR := src BUILD_DIR := build -SRC_FILES := $(wildcard $(SRC_DIR)/*.py) $(wildcard $(SRC_DIR)/**/*.py) +MAIN_PY := src/main.py +SRC_FILES := $(filter-out $(MAIN_PY), $(wildcard $(SRC_DIR)/*.py) $(wildcard $(SRC_DIR)/**/*.py)) BUILD_FILES := $(patsubst $(SRC_DIR)/%.py,$(BUILD_DIR)/%.mpy, $(SRC_FILES)) $(BUILD_DIR)/%.mpy: $(SRC_DIR)/%.py @@ -17,6 +18,7 @@ clean: .PHONY: deploy deploy: $(BUILD_FILES) + mpremote fs cp $(MAIN_PY) : mpremote fs cp -r $(BUILD_DIR)/* : .PHONY: purge