-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile
27 lines (18 loc) · 639 Bytes
/
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
all: build
build: age-plugin-tpm
age-plugin-tpm:
go build -o age-plugin-tpm ./cmd/age-plugin-tpm
.PHONY: age-plugin-tpm
test:
go test ./...
integ:
go build ./cmd/age-plugin-tpm
./age-plugin-tpm --swtpm -g -o age-identity.txt || true
./age-plugin-tpm --swtpm -y age-identity.txt > age-recipient.txt
echo "itworksitworksitworksitworksitworks" | AGE_TPM_SWTPM=1 AGEDEBUG=plugin PATH="${PWD}:${PATH}" age -R ./age-recipient.txt -o test-decrypt.txt
AGE_TPM_SWTPM=1 AGEDEBUG=plugin PATH="${PWD}:${PATH}" age --decrypt -i ./age-identity.txt -o - test-decrypt.txt
rm age-*.txt
check:
staticcheck ./...
go vet ./...
.PHONY: test