esp-idf/examples/protocols/http_server/restful_server/Makefile

16 lines
489 B
Makefile
Raw Normal View History

2019-05-10 01:21:14 -04:00
PROJECT_NAME := restful_server
EXTRA_COMPONENT_DIRS = $(IDF_PATH)/examples/common_components/protocol_examples_common
include $(IDF_PATH)/make/project.mk
2019-05-09 10:43:06 -04:00
ifdef CONFIG_EXAMPLE_WEB_DEPLOY_SF
2019-05-10 01:21:14 -04:00
WEB_SRC_DIR = $(shell pwd)/front/web-demo
ifneq ($(wildcard $(WEB_SRC_DIR)/dist/.*),)
SPIFFS_IMAGE_FLASH_IN_PROJECT := 1
$(eval $(call spiffs_create_partition_image,www,$(WEB_SRC_DIR)/dist))
2019-05-10 01:21:14 -04:00
else
$(error $(WEB_SRC_DIR)/dist doesn't exist. Please run 'npm run build' in $(WEB_SRC_DIR))
endif
endif