forked from jandelgado/jled
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
37 lines (28 loc) · 898 Bytes
/
Makefile
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
36
37
# use this makefile to build with platformio
#
.PHONY: all clean upload monitor lint test ci
CIOPTS=--board=uno --board=esp01 --lib="src"
all:
pio run
lint:
cpplint --extensions=cpp,h,ino $(shell find . \( ! -regex '.*/\..*' \) \
-type f -a \( -name "*\.cpp" -o -name "*\.h" -o -name "*\.ino" \) )
ci:
platformio ci examples/hello/hello.ino $(CIOPTS)
platformio ci examples/breathe/breathe.ino $(CIOPTS)
platformio ci examples/simple_on/simple_on.ino $(CIOPTS)
platformio ci examples/fade_on/fade_on.ino $(CIOPTS)
platformio ci examples/fade_off/fade_off.ino $(CIOPTS)
platformio ci examples/user_func/user_func.ino $(CIOPTS)
platformio ci examples/multiled/multiled.ino $(CIOPTS)
clean:
pio run --target clean
rm -f {test,src}/{*.o,*.gcno,*.gcda}
upload:
pio run --target upload
monitor:
pio device monitor
test:
$(MAKE) -C test coverage
tags:
ctags -R