PORT ?= /dev/ttyUSB0 BUILD_DIR := build NULL := /dev/null IDF_PY := idf.py -p $(PORT) .PHONY: default default: build .PHONY: build build: @${IDF_PY} build .PHONY: app app: @${IDF_PY} app .PHONY: target-esp32 target-esp32: clean-build idf.py set-target esp32 .PHONY: target-linux target-linux: clean-build idf.py --preview set-target linux .PHONY: flash flash: @${IDF_PY} flash .PHONY: menuconfig menuconfig: @${IDF_PY} menuconfig .PHONY: monitor monitor: @${IDF_PY} monitor .PHONY: picocom picocom: picocom $(PORT) -b 115200 --lower-rts --lower-dtr --noreset .PHONY: clean clean: clean-build .PHONY: clean-all clean-all: clean-build clean-sdkconfig .PHONY: clean-build clean-build: -rm -rf $(BUILD_DIR) .PHONY: clean-sdkconfig clean-sdkconfig: -rm -f sdkconfig sdkconfig.old