-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (29 loc) · 748 Bytes
/
Copy pathMakefile
File metadata and controls
37 lines (29 loc) · 748 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
.PHONY: help build release run check test clean install
help:
@echo "Surge TUI - Makefile commands"
@echo ""
@echo "make build - debug build (en-us, default)"
@echo "make release - release build (en-us, default)"
@echo "make run - run the program (en-us, default)"
@echo "make check - check code (both languages)"
@echo "make test - run tests"
@echo "make clean - clean build artifacts"
@echo "make install - install to system (en-us, default)"
@echo ""
@echo "Chinese build: cargo build --features zh-cn"
build:
cargo build
release:
cargo build --release
run:
cargo run
check:
cargo check
cargo check --features zh-cn
cargo clippy
test:
cargo test
clean:
cargo clean
install:
cargo install --path .