-
Notifications
You must be signed in to change notification settings - Fork 119
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (24 loc) · 671 Bytes
/
Copy pathMakefile
File metadata and controls
31 lines (24 loc) · 671 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
.PHONY: help build start install fmt check
PREFIX ?= /usr
BINDIR ?= $(PREFIX)/bin
help:
@echo "Usage: make [target]"
@echo ""
@echo "Targets:"
@echo " help Show this help message"
@echo " build Build the project"
@echo " start Run the build"
@echo " install Install the build (supports DESTDIR and PREFIX)"
@echo " fmt Format the code"
@echo " check Format, check and lint the code"
build:
cargo build --release
start: build
./target/release/ashell
install: build
install -Dm755 target/release/ashell $(DESTDIR)$(BINDIR)/ashell
fmt:
cargo fmt
check: fmt
cargo check
cargo clippy -- -D warnings