-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
63 lines (49 loc) · 1.12 KB
/
Makefile
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
55
56
57
58
59
60
61
62
63
SHELL := bash
.ONESHELL:
.SHELLFLAGS := -eu -o pipefail -c
.DELETE_ON_ERROR:
MAKEFLAGS += --warn-undefined-variables
MAKEFLAGS += --no-builtin-rules
install: build check-runtime-deps
cargo install --path crates/cli/
.PHONY: install
build: init
cargo build --release
.PHONY: build
clean:
cargo clean
.PHONY: clean
init:
git submodule update --init || echo 'Could not init git submodules'
.PHONY: init
init-dev: init
git config --local core.hooksPath .githooks || echo 'Could not set git hooks'
.PHONY: init-dev
dev-init: init-dev
.PHONY: dev-init
lint: fmt check-license-headers
cargo clippy --fix --allow-staged
.PHONY: lint
lint-ci: fmt-ci check-license-headers
cargo clippy
.PHONY: lint
test:
cargo test
.PHONY: test
fmt:
rustfmt crates/**/src/*.rs
rustfmt crates/**/src/**/*.rs
.PHONY: fmt
fmt-ci:
rustfmt --check crates/**/src/*.rs
rustfmt --check crates/**/src/**/*.rs
.PHONY: fmt-ci
check-license-headers:
./scripts/check-license-header-all-files.sh
.PHONY: check-license-headers
check-runtime-deps:
./scripts/check-runtime-deps.sh
.PHONY: check-runtime-deps
release:
./scripts/release.sh
.PHONY: release