From a3c8efb00b2c7281e25c0ca6330bed13d99b15df Mon Sep 17 00:00:00 2001 From: Willem Jiang Date: Wed, 4 Mar 2026 09:51:15 +0800 Subject: [PATCH] fix(make):added make config command in make file (#964) --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 51b4efa..b9cf33e 100644 --- a/Makefile +++ b/Makefile @@ -4,6 +4,7 @@ help: @echo "DeerFlow Development Commands:" + @echo " make config - Generate local config files (aborts if config already exists)" @echo " make check - Check if all required tools are installed" @echo " make install - Install all dependencies (frontend + backend)" @echo " make setup-sandbox - Pre-pull sandbox container image (recommended)" @@ -20,7 +21,11 @@ help: @echo " make docker-logs-gateway - View Docker gateway logs" config: - @test -f config.yaml || cp config.example.yaml config.yaml + @if [ -f config.yaml ] || [ -f config.yml ] || [ -f configure.yml ]; then \ + echo "Error: configuration file already exists (config.yaml/config.yml/configure.yml). Aborting."; \ + exit 1; \ + fi + @cp config.example.yaml config.yaml @test -f .env || cp .env.example .env @test -f frontend/.env || cp frontend/.env.example frontend/.env