-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
44 lines (32 loc) · 924 Bytes
/
Copy pathMakefile
File metadata and controls
44 lines (32 loc) · 924 Bytes
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
.PHONY: help run build release test lint fmt clippy docker clean
CARGO := cargo
help:
@echo "Available targets:"
@echo " make run - Run the bot locally (debug mode)"
@echo " make build - Debug build"
@echo " make release - Optimized release build"
@echo " make test - Run all tests"
@echo " make lint - Run fmt check + clippy"
@echo " make fmt - Format code"
@echo " make clippy - Run clippy linter"
@echo " make docker - Build Docker image"
@echo " make clean - Remove build artifacts"
run:
$(CARGO) run -p dirust-bot
build:
$(CARGO) build --workspace
release:
$(CARGO) build --workspace --release
test:
$(CARGO) test --workspace
lint: fmt-check clippy
fmt:
$(CARGO) fmt --all
fmt-check:
$(CARGO) fmt --all -- --check
clippy:
$(CARGO) clippy --workspace --all-targets -- -D warnings
docker:
docker build -t dirust:latest .
clean:
$(CARGO) clean