Permalink
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (15 sloc) 654 Bytes
#-------------------------------------------------------------------- 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