forked from aws/aws-encryption-sdk-dafny
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
31 lines (25 loc) · 1.27 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
# Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
verify:
$(MAKE) -C AwsEncryptionSDK verify CORES=4
dafny-reportgenerator:
$(MAKE) -C AwsEncryptionSDK dafny-reportgenerator
duvet: | duvet_extract duvet_report
duvet_extract:
rm -rf compliance
$(foreach file, $(shell find aws-encryption-sdk-specification/framework -name '*.md'), duvet extract -o compliance -f MARKDOWN $(file);)
# $(foreach file, $(shell find aws-encryption-sdk-specification/client-apis -name '*.md'), duvet extract -o compliance -f MARKDOWN $(file);)
# $(foreach file, $(shell find aws-encryption-sdk-specification/data-format -name '*.md'), duvet extract -o compliance -f MARKDOWN $(file);)
# TODO add these arguments to duvet_report as the work completes
# --ci \
# --require-citations true \
# --require-tests true \
duvet_report:
duvet \
report \
--spec-pattern "compliance/**/*.toml" \
--source-pattern "AwsCryptographicMaterialProviders/dafny/**/src/**/*.dfy" \
--source-pattern "AwsCryptographicMaterialProviders/dafny/**/Model/**/*.smithy" \
--source-pattern "AwsCryptographicMaterialProviders/compliance_exceptions/**/*.txt" \
--source-pattern "(# //=,# //#).github/workflows/duvet.yaml" \
--html specification_compliance_report.html