13 lines
227 B
Makefile
13 lines
227 B
Makefile
BOARD_NAME ?= esp8266:esp8266:huzzah
|
|
UPLOAD_PORT ?= /dev/ttyUSB0
|
|
|
|
.PHONY: all build upload
|
|
|
|
all: build
|
|
|
|
build:
|
|
arduino-cli compile -b ${BOARD_NAME} ${PWD}
|
|
|
|
upload:
|
|
arduino-cli upload -b ${BOARD_NAME} -p ${UPLOAD_PORT} ${PWD}
|