Makefile 471 B

1234567891011121314
  1. PROJECT_NAME := restful_server
  2. EXTRA_COMPONENT_DIRS = $(IDF_PATH)/examples/common_components/protocol_examples_common
  3. include $(IDF_PATH)/make/project.mk
  4. ifdef CONFIG_EXAMPLE_WEB_DEPLOY_SF
  5. WEB_SRC_DIR = $(shell pwd)/front/web-demo
  6. ifneq ($(wildcard $(WEB_SRC_DIR)/dist/.*),)
  7. $(eval $(call spiffs_create_partition_image,www,$(WEB_SRC_DIR)/dist,FLASH_IN_PROJECT))
  8. else
  9. $(error $(WEB_SRC_DIR)/dist doesn't exist. Please run 'npm run build' in $(WEB_SRC_DIR))
  10. endif
  11. endif