14 lines
463 B
Makefile
14 lines
463 B
Makefile
PROJECT_NAME := restful_server
|
|
|
|
EXTRA_COMPONENT_DIRS = $(IDF_PATH)/examples/common_components/protocol_examples_common
|
|
|
|
include $(IDF_PATH)/make/project.mk
|
|
|
|
ifdef CONFIG_WEB_DEPLOY_SF
|
|
WEB_SRC_DIR = $(shell pwd)/front/web-demo
|
|
ifneq ($(wildcard $(WEB_SRC_DIR)/dist/.*),)
|
|
$(eval $(call spiffs_create_partition_image,www,$(WEB_SRC_DIR)/dist,FLASH_IN_PROJECT))
|
|
else
|
|
$(error $(WEB_SRC_DIR)/dist doesn't exist. Please run 'npm run build' in $(WEB_SRC_DIR))
|
|
endif
|
|
endif
|