diff options
Diffstat (limited to 'hid/Makefile')
-rw-r--r-- | hid/Makefile | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/hid/Makefile b/hid/Makefile index 2aa886a1..b82d2673 100644 --- a/hid/Makefile +++ b/hid/Makefile @@ -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 -update: - platformio platform update install: upload upload: - platformio run --environment $(if $(E),$(E),serial_prod) --target upload + platformio run --environment $(shell cat .current) --target upload + + +update: + platformio platform update + clean-all: clean clean: - rm -rf .pio + rm -rf .pio .current + help: @ cat Makefile |