-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
44 lines (34 loc) · 889 Bytes
/
Makefile
File metadata and controls
44 lines (34 loc) · 889 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: build build-cloud clean test lint release install
build:
@echo "Building replayer CLI..."
@cargo build --release -p replayer-cli
@echo "Build complete!"
build-cloud:
@echo "Building replayer-cloud server..."
@cargo build --release -p replayer-cloud
@echo "Cloud build complete!"
build-all: build build-cloud
release:
@echo "Building optimized release binaries..."
@cargo build --release
@echo "Release build complete!"
clean:
@cargo clean
@echo "Clean complete!"
test:
@echo "Running tests..."
@cargo test --workspace
@echo "Tests complete!"
lint:
@echo "Running checks..."
@cargo clippy --workspace -- -D warnings
@cargo fmt --check
@echo "Checks complete!"
fmt:
@cargo fmt --all
install: build
@echo "Installing to /usr/local/bin..."
@sudo cp target/release/replayer /usr/local/bin/
@echo "Installation complete!"
check:
@cargo check --workspace