forked from jandelgado/jled
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
44 lines (34 loc) · 1.18 KB
/
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
38
39
40
41
42
43
44
# use this makefile to build with platformio
#
.PHONY: all clean upload monitor lint test ci
# some of the examples use LED_BUILTIN which is not defined for ESP32
CIOPTS=--board=uno --board=esp01 --lib="src"
CIOPTSALL=--board=esp32dev --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 $(CIOPTS) --lib="examples/morse" examples/morse/morse.ino
platformio ci $(CIOPTS) examples/candle/candle.ino
platformio ci $(CIOPTS) examples/multiled/multiled.ino
platformio ci $(CIOPTS) examples/user_func/user_func.ino
platformio ci $(CIOPTS) examples/hello/hello.ino
platformio ci $(CIOPTSALL) examples/breathe/breathe.ino
platformio ci $(CIOPTS) examples/simple_on/simple_on.ino
platformio ci $(CIOPTSALL) examples/fade_on/fade_on.ino
platformio ci $(CIOPTSALL) examples/sequence/sequence.ino
envdump:
-pio run --target envdump
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 OPT=-O0
tags:
ctags -R