build: add a make target for generating sample config file

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I9bbc0f7cc37599b4bebd07621c35db9f6a6a6964
This commit is contained in:
raf 2026-04-21 17:02:07 +03:00
commit c0b893887d
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF

View file

@ -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-%: