forked from remilapeyre/vault-acme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
41 lines (32 loc) · 935 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 bin
CGO_ENABLED=0 go build -o bin ./...
.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 'bin/{{.OS}}_{{.Arch}}/acme-plugin' ./cmd/acme
CGO_ENABLED=0 gox -os='$(GOX_OS)' -arch='386 amd64 arm arm64' -osarch='!darwin/arm !darwin/386' -output 'bin/{{.OS}}_{{.Arch}}/sidecar' ./cmd/sidecar
.PHONY: archives
archives: all
for arch in ./bin/*; do zip --junk-paths $$arch.zip $$arch/*; done
sha256sum ./bin/*.zip > ./build/vault-acme_SHA256SUMS