forked from pressly/goose
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
18 lines (17 loc) · 654 Bytes
/
Copy pathMakefile
File metadata and controls
18 lines (17 loc) · 654 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
.PHONY: dist
dist:
@mkdir -p ./bin
@rm -f ./bin/*
GOOS=darwin GOARCH=amd64 go build -o ./bin/goose-darwin64 ./cmd/goose
GOOS=linux GOARCH=amd64 go build -o ./bin/goose-linux64 ./cmd/goose
GOOS=linux GOARCH=386 go build -o ./bin/goose-linux386 ./cmd/goose
GOOS=windows GOARCH=amd64 go build -o ./bin/goose-windows64.exe ./cmd/goose
GOOS=windows GOARCH=386 go build -o ./bin/goose-windows386.exe ./cmd/goose
.PHONY: vendor
vendor:
mv _go.mod go.mod
mv _go.sum go.sum
GO111MODULE=on go build -o ./bin/goose ./cmd/goose
GO111MODULE=on go mod vendor && GO111MODULE=on go mod tidy
mv go.mod _go.mod
mv go.sum _go.sum