blob: 89ec29de982b0d714f6fe2455edc4f3498eb4ecc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
.PHONY: all setup build clean
all: gitlab-pages
setup: clean .GOPATH/.ok
go get golang.org/x/tools/cmd/goimports
# Workaround for broken 'go get golang.org/x/lint' due to Google hosting problems
git clone --quiet https://github.com/golang/lint $(GOPATH)/src/golang.org/x/lint
go install golang.org/x/lint/golint
go get golang.org/x/tools/cmd/goimports
go get github.com/wadey/gocovmerge
go get github.com/fzipp/gocyclo
build: .GOPATH/.ok
$Q go install $(if $V,-v) $(VERSION_FLAGS) $(IMPORT_PATH)
clean:
$Q rm -rf bin .GOPATH gitlab-pages
gitlab-pages: build
$Q cp -f ./bin/gitlab-pages .
|