-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (19 loc) · 755 Bytes
/
Makefile
File metadata and controls
27 lines (19 loc) · 755 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
27
.PHONY: build_osx build_windows build_linux init_osx init_linux init_windows
GOLANG_VERSION ?= 1.26.1
lint:
golangci-lint run
build_osx:
go mod download
GO111MODULE=on CGO_ENABLED=0 GOOS=darwin go build -a -installsuffix cgo -v .
build_windows:
go mod download
GO111MODULE=on CGO_ENABLED=0 GOOS=windows go build -v .
build_linux:
go mod download
GO111MODULE=on CGO_ENABLED=0 GOOS=linux go build -installsuffix cgo -v .
init_osx:
docker run --rm -v "$(CURDIR)":/easyvpn -w /easyvpn golang:$(GOLANG_VERSION) make build_osx
init_linux:
docker run --rm -v "$(CURDIR)":/easyvpn -w /easyvpn golang:$(GOLANG_VERSION) make build_linux
init_windows:
docker run --rm -v "$(CURDIR)":/easyvpn -w /easyvpn golang:$(GOLANG_VERSION) make build_windows