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