forked from latchset/kryoptic
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
67 lines (51 loc) · 1.61 KB
/
Makefile
File metadata and controls
67 lines (51 loc) · 1.61 KB
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
64
65
66
67
TESTS:=
all: build
build:
cargo build --features nssdb
fips:
cargo build --no-default-features --features fips,nssdb
static:
cargo build --no-default-features --features standard
check:
cargo test --features nssdb,log $(TESTS)
check-fips:
cargo test --no-default-features --features fips,nssdb,log $(TESTS)
check-static:
cargo test --no-default-features --features standard,log $(TESTS)
check-format:
@find ./cdylib -name '*.rs' | xargs rustfmt --check --color auto
@find ./ossl -name '*.rs' | xargs rustfmt --check --color auto --edition 2021
@find ./src -name '*.rs' | xargs rustfmt --check --color auto --edition 2021
@find ./tools -name '*.rs' | xargs rustfmt --check --color auto
fix-format:
@find ./cdylib -name '*.rs' | xargs rustfmt
@find ./ossl -name '*.rs' | xargs rustfmt --edition 2021
@find ./src -name '*.rs' | xargs rustfmt --edition 2021
@find ./tools -name '*.rs' | xargs rustfmt
check-spell:
@.github/codespell.sh
softhsm-tests:
cargo build --workspace
tools/softhsm/test.sh
docs:
cargo doc --no-default-features --features standard,pqc,nssdb,log --document-private-items
docs-fips:
cargo doc --no-default-features --features fips --document-private-items
.ONESHELL:
SHELL = /bin/bash
scope:
@if [ -x "$$(command -v scope)" ]; then
PKCSFILES=$$(find ./ -name pkcs11_bindings.rs)
if [[ -n "$$PKCSFILES" ]]; then
read PKCSFILE < <(ls -t $$PKCSFILES)
fi
OSSLFILES=$$(find ./ -name ossl_bindings.rs)
if [[ -n "$$OSSLFILES" ]]; then
read OSSLFILE < <(ls -t $$OSSLFILES)
fi
scope -- cdylib ossl pkcs11 src tools $$PKCSFILE $$OSSLFILE
fi
tags: scope
ctags -R src/
clean:
cargo clean