-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
134 lines (105 loc) · 3.9 KB
/
Makefile
File metadata and controls
134 lines (105 loc) · 3.9 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
# Makefile for Rust workspace
# Contains targets for the entire workspace and individual crates
# Define crates in the workspace
CRATES := loan synthetic_data ezkl
# Default target: build all workspace members
all:
cargo build --workspace
# Build all workspace members in release mode
release:
cargo build --workspace --release
# Check all workspace members
check:
cargo check --workspace
# Test all workspace members
test:
cargo test --workspace
# Clean all build artifacts
clean:
cargo clean
# Run clippy on all workspace members
clippy:
cargo clippy --workspace
# Run clippy with auto-fix on all workspace members
clippy-fix:
cargo clippy --workspace --fix
# Individual crate targets
loan:
cargo build -p loan
synthetic_data:
cargo build -p synthetic_data
ezkl:
cargo build -p ezkl
# Check individual crates
check-loan:
cargo check -p loan
check-synthetic_data:
cargo check -p synthetic_data
check-ezkl:
cargo check -p ezkl
# Test individual crates
test-loan:
cargo test -p loan
test-synthetic_data:
cargo test -p synthetic_data
test-ezkl:
cargo test -p ezkl
# Build individual crates in release mode
release-loan:
cargo build -p loan --release
release-synthetic_data:
cargo build -p synthetic_data --release
release-ezkl:
cargo build -p ezkl --release
# Run clippy on individual crates
clippy-loan:
cargo clippy -p loan
clippy-synthetic_data:
cargo clippy -p synthetic_data
clippy-ezkl:
cargo clippy -p ezkl
# Run clippy with auto-fix on individual crates
clippy-fix-loan:
cargo clippy -p loan --fix
clippy-fix-synthetic_data:
cargo clippy -p synthetic_data --fix
clippy-fix-ezkl:
cargo clippy -p ezkl --fix
# Show help information
help:
@echo "Available targets:"
@echo " all - Build all workspace members (default)"
@echo " check - Check all workspace members"
@echo " test - Test all workspace members"
@echo " clean - Clean all build artifacts"
@echo " release - Build all workspace members in release mode"
@echo " loan - Build the loan crate"
@echo " synthetic_data - Build the synthetic_data crate"
@echo " ezkl - Build the ezkl crate"
@echo " check-loan - Check the loan crate"
@echo " check-synthetic_data - Check the synthetic_data crate"
@echo " check-ezkl - Check the ezkl crate"
@echo " test-loan - Test the loan crate"
@echo " test-synthetic_data - Test the synthetic_data crate"
@echo " test-ezkl - Test the ezkl crate"
@echo " release-loan - Build the loan crate in release mode"
@echo " release-synthetic_data - Build the synthetic_data crate in release mode"
@echo " release-ezkl - Build the ezkl crate in release mode"
@echo " clippy - Run clippy on all workspace members"
@echo " clippy-fix - Run clippy with auto-fix on all workspace members"
@echo " clippy-loan - Run clippy on the loan crate"
@echo " clippy-synthetic_data - Run clippy on the synthetic_data crate"
@echo " clippy-ezkl - Run clippy on the ezkl crate"
@echo " clippy-fix-loan - Run clippy with auto-fix on the loan crate"
@echo " clippy-fix-synthetic_data - Run clippy with auto-fix on the synthetic_data crate"
@echo " clippy-fix-ezkl - Run clippy with auto-fix on the ezkl crate"
@echo " help - Show this help information"
# Mark all targets as PHONY (not associated with files)
.PHONY: all check test clean release help \
loan synthetic_data ezkl \
check-loan check-synthetic_data check-ezkl \
test-loan test-synthetic_data test-ezkl \
release-loan release-synthetic_data release-ezkl \
clippy clippy-fix \
clippy-loan clippy-synthetic_data clippy-ezkl \
clippy-fix-loan clippy-fix-synthetic_data clippy-fix-ezkl