2021-08-11 09:11:11 +02:00
|
|
|
SHELL:=/bin/bash
|
|
|
|
|
2016-09-16 10:10:18 +02:00
|
|
|
ifeq ($(IDF_PATH),)
|
2021-07-15 08:25:25 +02:00
|
|
|
|
2016-09-16 10:10:18 +02:00
|
|
|
THIS_MK_FILE:=$(notdir $(lastword $(MAKEFILE_LIST)))
|
|
|
|
THIS_DIR:=$(abspath $(dir $(lastword $(MAKEFILE_LIST))))
|
|
|
|
IDF_PATH=$(THIS_DIR)/sdk/esp32-esp-idf
|
2019-04-22 14:45:27 +02:00
|
|
|
|
2021-07-15 08:25:25 +02:00
|
|
|
all:
|
|
|
|
. $(IDF_PATH)/export.sh && $(MAKE) "$@"
|
2020-01-05 08:26:18 +01:00
|
|
|
|
2021-07-15 08:25:25 +02:00
|
|
|
%:
|
|
|
|
. $(IDF_PATH)/export.sh && $(MAKE) "$@"
|
2016-09-16 10:10:18 +02:00
|
|
|
|
|
|
|
else
|
|
|
|
|
2021-07-15 08:25:25 +02:00
|
|
|
all:
|
|
|
|
$(IDF_PATH)/tools/idf.py $(IDFPY_ARGS) "$@"
|
2016-09-16 10:10:18 +02:00
|
|
|
|
2021-07-15 08:25:25 +02:00
|
|
|
%:
|
|
|
|
$(IDF_PATH)/tools/idf.py $(IDFPY_ARGS) "$@"
|
2016-09-16 10:10:18 +02:00
|
|
|
|
|
|
|
endif
|