能源管控程序
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

20 lines
654 B

  1. #-------------------------------------------------------------------- settings
  2. FIND := find
  3. DIR := examples
  4. CRITERIA := \( -name "*.ino" -o -name "*.pde" \)
  5. EACH_EXAMPLE := $(FIND) $(DIR) $(CRITERIA) -exec
  6. BUILD := platformio ci
  7. LIB := src
  8. #--------------------------------------------------------------------- targets
  9. # update .travis.yml if target boards added
  10. all: uno due huzzah genuino101 teensy31
  11. uno due huzzah genuino101 teensy31:
  12. PLATFORMIO_BOARD=$@ $(MAKE) build
  13. build:
  14. $(EACH_EXAMPLE) $(BUILD) --board=$(PLATFORMIO_BOARD) --lib=$(LIB) {} \;
  15. .PHONY: all uno due huzzah genuino101 teensy31 build