diff options
author | Devaev Maxim <[email protected]> | 2020-08-06 07:03:29 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2020-08-06 07:03:29 +0300 |
commit | 1196285045aeb5748c531972ec0da04066f394a2 (patch) | |
tree | 1269a4983a6b28ef68bd32e06235ce249b266f53 /hid/Makefile | |
parent | 05984cee5dd698d21d2c4d717cc0fd9ce6dd92e7 (diff) |
ps2
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 |