1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
go.mod:
go mod init git.dominic-ricottone.com/~dricottone/x509-validator
GO_SRC!=find * -type f -name '*.go'
x509-validator: go.mod $(GO_SRC)
go build -o x509-validator .
x509-validator.wasm: go.mod $(GO_SRC)
GOARCH=wasm GOOS=js go build -o x509-validator.wasm .
wasm_exec.js:
cp "$$(go env GOROOT)/misc/wasm/wasm_exec.js" .
.PHONY: clean
clean:
rm -f x509-validator x509-validator.wasm wasm_exec.js
.PHONY: build
build: x509-validator x509-validator.wasm wasm_exec.js