diff --git a/Makefile b/Makefile index 018abd79..35ba3831 100644 --- a/Makefile +++ b/Makefile @@ -28,7 +28,7 @@ fe: @echo "Building frontend..." @bash $(BUILD_FE_SCRIPT) -server: env setup_es_index +server: env @if [ ! -d "$(STATIC_DIR)" ]; then \ echo "Static directory '$(STATIC_DIR)' not found, building frontend..."; \ $(MAKE) fe; \