-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
44 lines (36 loc) · 906 Bytes
/
Makefile
File metadata and controls
44 lines (36 loc) · 906 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
rust-version:
@echo "Rust command-line utility versions:"
rustc --version #rust compiler
cargo --version #rust package manager
rustfmt --version #rust code formatter
rustup --version #rust toolchain manager
clippy-driver --version #rust linter
cleanup:
@echo "Cleaning up target"
rm -rf target
@echo "Cleanup up release folder"
rm -rf release
@echo "Cleanup completed !!"
compile:
cargo build
format:
cargo fmt --quiet
lint:
cargo clippy --quiet
test:
cargo test --quiet
run:
cargo run
build:
@echo "Initializing clean build.."
rm -rf release
cargo build --release
@echo "Created Jotdown release build!"
@echo "Creating release folder.."
mkdir release
@echo "Packaging executable and release information.."
cp ./target/release/jotdown release/jd
cp ./*.md release/
@echo "Packaging completed !!"
dev: format lint test run
deploy: format lint test release