-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
50 lines (40 loc) · 1.19 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
.PHONY: helm-docs run watch-run docker-build
# Generate Helm chart documentation
helm-docs:
cd charts/tembo-metrics && helm-docs --output-file CHART_README.md
# Run the application
run:
cargo run
# Watch for changes and run the application
watch-run:
cargo watch -x run
# Build Docker image
docker-build:
docker buildx build -f Dockerfile -t tembo-metrics:latest .
# Run all checks (add more as needed)
check: helm-docs
cargo fmt -- --check
cargo clippy -- -D warnings
# Build the project
build:
cargo build --release
# Clean build artifacts
clean:
cargo clean
# Run tests
test:
cargo test
# All-in-one command for checks, tests, and build
all: check test build
# Help command to display available make targets
help:
@echo "Available targets:"
@echo " helm-docs - Generate Helm chart documentation"
@echo " run - Run the application"
@echo " watch-run - Watch for changes and run the application"
@echo " docker-build - Build Docker image"
@echo " check - Run all checks"
@echo " build - Build the project"
@echo " clean - Clean build artifacts"
@echo " test - Run tests"
@echo " all - Run checks, tests, and build"