-
Notifications
You must be signed in to change notification settings - Fork 178
/
Makefile
44 lines (35 loc) · 1.05 KB
/
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
42
43
44
.PHONY: all build dist test install clean tools deps update-deps
all:
@echo "build - Build sup"
@echo "dist - Build sup distribution binaries"
@echo "test - Run tests"
@echo "install - Install binary"
@echo "clean - Clean up"
@echo ""
@echo "tools - Install tools"
@echo "vendor-list - List vendor package tree"
@echo "vendor-update - Update vendored packages"
build:
@mkdir -p ./bin
@rm -f ./bin/*
go build -o ./bin/sup ./cmd/sup
dist:
@mkdir -p ./bin
@rm -f ./bin/*
GOOS=darwin GOARCH=amd64 go build -o ./bin/sup-darwin64 ./cmd/sup
GOOS=linux GOARCH=amd64 go build -o ./bin/sup-linux64 ./cmd/sup
GOOS=linux GOARCH=386 go build -o ./bin/sup-linux386 ./cmd/sup
GOOS=windows GOARCH=amd64 go build -o ./bin/sup-windows64.exe ./cmd/sup
GOOS=windows GOARCH=386 go build -o ./bin/sup-windows386.exe ./cmd/sup
test:
go test ./...
install:
go install ./cmd/sup
clean:
@rm -rf ./bin
tools:
go get -u github.com/kardianos/govendor
vendor-list:
@govendor list
vendor-update:
@govendor update +external