-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile.core.mk
More file actions
46 lines (32 loc) · 852 Bytes
/
Makefile.core.mk
File metadata and controls
46 lines (32 loc) · 852 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
FINDFILES=find . \( -path ./.git -o -path ./out -o -path ./.github -o -path ./vendor -o -path ./frontend/node_modules \) -prune -o -type f
XARGS=xargs -0 -r
RELEASE_LDFLAGS='-extldflags -static -s -w'
BINARIES=./cmd/api ./cmd/envsubst
lint-markdown:
@${FINDFILES} -name '*.md' -print0 | ${XARGS} mdl --ignore-front-matter --style .mdl.rb
lint: lint-markdown
cargo clippy --tests --bins
check: lint
cargo check
cve-check:
cargo deny check advisories
license-check:
cargo deny check licenses
fix:
cargo clippy --fix --allow-staged --allow-dirty
cargo fmt
format:
cargo fmt
.PHONY: default
default: build
build:
@DRY_RUN=1 scripts/build.sh
release:
@scripts/build.sh
test:
RUST_BACKTRACE=1 cargo test --tests --bins
clean:
cargo clean
check-clean-repo:
@scripts/check_clean_repo.sh
presubmit: test lint format check-clean-repo