This commit is contained in:
Devaev Maxim
2020-08-06 07:03:29 +03:00
parent 05984cee5d
commit 1196285045
14 changed files with 475 additions and 90 deletions

View File

@@ -1,16 +1,26 @@
all:
platformio run --environment $(if $(E),$(E),serial_prod)
usb:
make _build E=usb
ps2:
make _build E=ps2
_build:
rm -f .current
platformio run --environment $(E)
echo -n $(E) > .current
install: upload
upload:
platformio run --environment $(shell cat .current) --target upload
update:
platformio platform update
install: upload
upload:
platformio run --environment $(if $(E),$(E),serial_prod) --target upload
clean-all: clean
clean:
rm -rf .pio
rm -rf .pio .current
help:
@ cat Makefile