~dricottone/x509-validator

ref: 6554f062ced3a0dae4b00cd35ed0230e7bced06f x509-validator/Makefile -rw-r--r-- 481 bytes
6554f062Dominic Ricottone Initial commit 3 months ago
                                                                                
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