-
Notifications
You must be signed in to change notification settings - Fork 353
/
Makefile
19 lines (15 loc) · 654 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#-------------------------------------------------------------------- settings
FIND := find
DIR := examples
CRITERIA := \( -name "*.ino" -o -name "*.pde" \)
EACH_EXAMPLE := $(FIND) $(DIR) $(CRITERIA) -exec
BUILD := platformio ci
LIB := src
#--------------------------------------------------------------------- targets
# update .travis.yml if target boards added
all: uno due huzzah genuino101 teensy31
uno due huzzah genuino101 teensy31:
PLATFORMIO_BOARD=$@ $(MAKE) build
build:
$(EACH_EXAMPLE) $(BUILD) --board=$(PLATFORMIO_BOARD) --lib=$(LIB) {} \;
.PHONY: all uno due huzzah genuino101 teensy31 build