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:
parent
5258a0b492
commit
c0b893887d
1 changed files with 7 additions and 1 deletions
8
Makefile
8
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-%:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue