mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-28 23:22:19 +03:00
modbus support
This commit is contained in:
19
lib/ModbusMaster/Makefile
Normal file
19
lib/ModbusMaster/Makefile
Normal file
@@ -0,0 +1,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
|
||||
Reference in New Issue
Block a user