From c0b893887d9ad56984ab61f55e64a4e43b89f634 Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Tue, 21 Apr 2026 17:02:07 +0300 Subject: [PATCH] build: add a make target for generating sample config file Signed-off-by: NotAShelf Change-Id: I9bbc0f7cc37599b4bebd07621c35db9f6a6a6964 --- Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 3163a7f..d293bdc 100644 --- a/Makefile +++ b/Makefile @@ -142,6 +142,11 @@ version-header: # Create systemd service file systemd-service: $(SYSTEMD_DIR)/$(PROJECT_NAME).service +# Create sample configuration file +sample-config: + @echo "Creating sample configuration..." + @cp chroma.conf.sample $(CONFIG_FILE_NAME) + @echo "Sample configuration created at $(CONFIG_FILE_NAME)" # Clean build artifacts clean: @@ -230,6 +235,7 @@ help: @echo " check-deps - Check if all dependencies are available" @echo " install - Install executable and systemd service" @echo " uninstall - Remove installed files" + @echo " sample-config - Create sample configuration file" @echo " clean - Remove build artifacts" @echo " distclean - Remove all generated files" @echo " format - Format source code (requires clang-format)" @@ -254,7 +260,7 @@ help: -include $(DEPENDS) # Phony targets -.PHONY: all debug static check-deps install uninstall systemd-service version-header clean distclean format analyze test test-memory memory-report help bump-patch bump-minor bump-major set-version +.PHONY: all debug static check-deps install uninstall systemd-service sample-config version-header clean distclean format analyze test test-memory memory-report help bump-patch bump-minor bump-major set-version # Print variables print-%: