mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-01 22:12:33 +07:00
24 lines
441 B
Makefile
24 lines
441 B
Makefile
THISDIR = $(realpath $(CURDIR))
|
|
ROOTDIR = $(realpath $(CURDIR)/../../..)
|
|
DOCKER ?= docker run --rm $(DA) -v $(ROOTDIR):$(ROOTDIR) -w $(THISDIR) espressif/idf
|
|
CMD ?= idf.py build
|
|
PORT ?= /dev/ttyUSB0
|
|
|
|
all: example
|
|
|
|
example:
|
|
true
|
|
|
|
build: Makefile $(wildcard main/*)
|
|
$(DOCKER) $(CMD)
|
|
|
|
flash:
|
|
flash: CMD = idf.py flash
|
|
flash: DA = --device $(PORT)
|
|
flash: build
|
|
|
|
clean:
|
|
test -d build && $(DOCKER) rm -rf build sdkconfig || true
|
|
|
|
.PHONY: build
|