-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
54 lines (42 loc) · 816 Bytes
/
Makefile
File metadata and controls
54 lines (42 loc) · 816 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
46
47
48
49
50
51
52
53
54
.PHONY: build test clean run demo help
# Build the project
build:
cargo build --release
# Run tests
test:
cargo test
# Clean build artifacts
clean:
cargo clean
rm -rf _site
rm -rf demo
rm -rf target
# Check the project
check:
cargo check
# Run the development server
run:
cargo run -- serve
# Create and run demo site
demo: clean
cargo build
target/debug/rustyll build --source demo_content --destination _site --verbose
target/debug/rustyll serve
# Install dependencies
deps:
cargo install cargo-watch
# Watch for changes and rebuild
watch:
cargo watch -x run -- serve
# Run with safe mode
safe:
cargo run -- serve --safe
# Run with drafts enabled
drafts:
cargo run -- serve --drafts
# Run with verbose output
verbose:
cargo run -- serve --verbose
# Show help
help:
cargo run -- --help