forked from Boostport/vault-plugin-secrets-acme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
41 lines (32 loc) · 947 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
GOX_OS := linux darwin windows freebsd openbsd solaris
TEST_ARGS :=
.PHONY: build
build:
@mkdir -p build
CGO_ENABLED=0 go build -o build ./...
.PHONY: fmt
fmt:
gofmt -w acme
.PHONY: clean
clean:
rm -rf build/*
.PHONY: test
test:
@CGO_ENABLED=0 go test $(TEST_ARGS) ./acme
.PHONY: testacc
testacc: build
@CGO_ENABLED=0 go test $(TEST_ARGS) ./test
.PHONY: website
website:
$(MAKE) -C website build
.PHONY: preview
preview:
$(MAKE) -C website website
.PHONY: all
all:
CGO_ENABLED=0 gox -os='$(GOX_OS)' -arch='386 amd64 arm arm64' -osarch='!darwin/arm !darwin/386' -output 'build/{{.OS}}_{{.Arch}}/acme-plugin' ./cmd/acme
CGO_ENABLED=0 gox -os='$(GOX_OS)' -arch='386 amd64 arm arm64' -osarch='!darwin/arm !darwin/386' -output 'build/{{.OS}}_{{.Arch}}/sidecar' ./cmd/sidecar
.PHONY: archives
archives: all
for arch in ./build/*; do zip --junk-paths $$arch.zip $$arch/*; done
sha256sum ./build/*.zip > ./build/vault-acme_SHA256SUMS