build: add uninstall target to delete files on esp
This commit is contained in:
parent
5a8c3abd49
commit
02dfb0450d
1 changed files with 7 additions and 0 deletions
7
Makefile
7
Makefile
|
|
@ -29,6 +29,13 @@ install: check src/*.mpy
|
|||
$(AMPY) --port $(ESP_PORT) put $$f; \
|
||||
done
|
||||
|
||||
uninstall:
|
||||
@echo $(filter-out /boot.py,$(shell $(AMPY) --port $(ESP_PORT) ls))
|
||||
@for f in $(filter-out /boot.py,$(shell $(AMPY) --port $(ESP_PORT) ls)); do \
|
||||
echo Deleting $$f; \
|
||||
$(AMPY) --port $(ESP_PORT) rm $$f; \
|
||||
done
|
||||
|
||||
clean:
|
||||
rm -rf src/__pycache__
|
||||
rm -f src/*.pyc
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue