-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
45 lines (34 loc) · 704 Bytes
/
Copy pathMakefile
File metadata and controls
45 lines (34 loc) · 704 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
45
.PHONY: all build install release clean fmt clippy check test size
# Default target
all: build
# Build the project in debug mode
build:
@cargo build
# Build and install the binary
install:
@cargo install --path .
# Build release version
release:
@cargo build --release
# Clean build artifacts
clean:
@cargo clean
# Format code with rustfmt
fmt:
@cargo fmt
# Check formatting
fmt-check:
@cargo fmt --check
# Run clippy linter
clippy:
@cargo clippy -- -D warnings
# Run cargo check
check:
@cargo check
# Run tests (if any)
test:
@cargo test
# Show binary size (release build)
size:
@cargo build --release
@ls -lh target/release/pdf-to-markdown* 2>/dev/null || echo "Binary not found"