-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
60 lines (49 loc) · 1.11 KB
/
Copy pathMakefile
File metadata and controls
60 lines (49 loc) · 1.11 KB
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
51
52
53
54
55
56
57
58
59
60
.PHONY: build install clean test run fmt lint help verify
# Variables
BINARY_NAME=amcli
CARGO=cargo
# Build the application
build:
@echo "Building $(BINARY_NAME)..."
$(CARGO) build --release
# Install the application
install:
@echo "Installing $(BINARY_NAME)..."
$(CARGO) install --path .
# Clean build artifacts
clean:
@echo "Cleaning..."
$(CARGO) clean
@rm -rf bin/
@rm -rf dist/
# Run tests
test:
@echo "Running tests..."
$(CARGO) test
# Run the application
run:
$(CARGO) run
# Format code
fmt:
@echo "Formatting code..."
$(CARGO) fmt
# Lint code
lint:
@echo "Linting code..."
$(CARGO) clippy -- -D warnings
# Verify the project (runs script)
verify:
@./scripts/verify.sh
# Show help
help:
@echo "Available targets:"
@echo " build - Build the application"
@echo " install - Install the application"
@echo " clean - Clean build artifacts"
@echo " test - Run tests"
@echo " run - Run the application"
@echo " fmt - Format code"
@echo " lint - Lint code"
@echo " verify - Run full verification script"
@echo " help - Show this help message"
.DEFAULT_GOAL := help