summaryrefslogtreecommitdiff
path: root/hid/Makefile
blob: a46a66d0195e7f401dd7b070399964d8ac1e26d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
serial:
	make _build E=serial
spi:
	make _build E=spi
aum:
	make _build E=aum
_build:
	rm -f .current
	platformio run --environment $(E)
	echo -n $(E) > .current


install: upload
upload:
	platformio run --environment $(shell cat .current) --target upload


bootloader-spi: install-bootloader-spi
install-bootloader-spi: upload-bootloader-spi
upload-bootloader-spi:
	platformio run --environment bootloader_spi --target bootloader


update:
	platformio platform update


clean-all: clean
	rm -rf .platformio
clean:
	rm -rf .pio .current


help:
	@ cat Makefile