-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
47 lines (40 loc) · 1.08 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
all: build
.PHONY: all doc
SHELL := /bin/bash
# 'test' or 'ci'
TARGET ?= test
ci:
TARGET=ci make test
init-rust-toolchains:
rustup toolchain install nightly-x86_64-unknown-linux-gnu
rustup toolchain install nightly-i686-unknown-linux-gnu
rustup target add x86_64-unknown-linux-gnu
rustup target add i686-unknown-linux-gnu --toolchain nightly
rustup default nightly
rustup show
doc:
cargo doc --no-deps
doc-sync: doc
rm -rf doc
rsync -az target/doc/ doc/
rm doc/.lock
build:
cargo build --lib --release
build-i686:
cargo build --lib --release --target i686-unknown-linux-gnu --no-default-features
test-nostd:
cargo test --no-default-features --features "sign validate"
test-std:
cargo test --no-default-features --features "sign validate std"
test-i686:
cargo test --target i686-unknown-linux-gnu --no-default-features --features "sign validate"
test-example-rust-mbedtls:
make -C examples/rust-mbedtls test
test-voucher-if:
make -C if test
test:
make test-nostd
make test-std
if [ "$$TARGET" = "ci" ]; then make test-i686; fi
make test-example-rust-mbedtls
make test-voucher-if