-
Notifications
You must be signed in to change notification settings - Fork 51
/
Makefile
51 lines (37 loc) · 1.5 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
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0 OR ISC
init-submodules:
git submodule update --init --recursive
deinit-submodules:
git submodule deinit --all -f
init: init-submodules
git config core.hooksPath .githooks
rustup component add rustfmt clippy
cargo install rust-script cargo-llvm-cov cargo-license public-api cargo-msrv --locked
cargo install cargo-audit --features=fix --locked
update-aws-lc-fips-sys:
git submodule update --init --remote --checkout -- aws-lc-fips-sys/aws-lc
cd aws-lc-fips-sys/aws-lc && \
git fetch --all && \
git tag -l | xargs ../../scripts/tools/semver.rs fips-v3 | xargs git checkout
update-aws-lc-sys:
git submodule update --init --remote --checkout -- aws-lc-sys/aws-lc
cd aws-lc-sys/aws-lc && \
git fetch --all && \
git tag -l | xargs ../../scripts/tools/semver.rs main | xargs git checkout
update-submodules: update-aws-lc-fips-sys update-aws-lc-sys
lic:
cargo +nightly license
audit:
cargo +nightly audit fix --dry-run
format:
cargo +nightly fmt -- --color auto --files-with-diff --verbose
api-diff-main:
cargo public-api diff `git rev-parse main`..`git rev-parse HEAD`
api-diff-pub:
cargo public-api diff latest
clippy:
cargo +nightly clippy --all-targets --features bindgen -- -W clippy::all -W clippy::pedantic
udep:
cargo +nightly udeps --all-targets
.PHONY: init-aws-lc-sys init-aws-lc-fips-sys init-submodules init update-submodules lic audit format api-diff-main api-diff-pub clippy udep