forked from suyashkumar/ssl-proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (22 loc) · 636 Bytes
/
Makefile
File metadata and controls
27 lines (22 loc) · 636 Bytes
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
BINARY = ssl-proxy
.PHONY: build
build:
go mod download
go build -o ${BINARY}
.PHONY: test
test:
go test -v ./...
.PHONY: run
run:
make build
./${BINARY}
.PHONY: release
release:
go mod download
GOOS=linux GOARCH=amd64 go build -o build/${BINARY}-linux-amd64 .;
GOOS=darwin GOARCH=amd64 go build -o build/${BINARY}-darwin-amd64 .;
GOOS=windows GOARCH=amd64 go build -o build/${BINARY}-windows-amd64.exe .;
cd build; \
tar -zcvf ssl-proxy-linux-amd64.tar.gz ssl-proxy-linux-amd64; \
tar -zcvf ssl-proxy-darwin-amd64.tar.gz ssl-proxy-darwin-amd64; \
zip -r ssl-proxy-windows-amd64.exe.zip ssl-proxy-windows-amd64.exe;