diff options
author | Nick Thomas <nick@gitlab.com> | 2017-09-22 16:35:01 +0300 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2017-09-29 15:04:49 +0300 |
commit | d4aa227433be1b4c415ad8e70f5123b81a496360 (patch) | |
tree | e4a38cd7c6ee3fb64208fb53fb815dfc678d9a98 /Makefile.build.mk | |
parent | d5360efc31b0c6b02ed17f77087226bba3916e36 (diff) |
Rework the Makefile so "make" runs outside a GOPATH. Update CI to suit
Diffstat (limited to 'Makefile.build.mk')
-rw-r--r-- | Makefile.build.mk | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Makefile.build.mk b/Makefile.build.mk new file mode 100644 index 00000000..70f446d4 --- /dev/null +++ b/Makefile.build.mk @@ -0,0 +1,20 @@ +.PHONY: all setup build clean + +all: gitlab-pages + +setup: clean .GOPATH/.ok + go get -u github.com/FiloSottile/gvt + - ./bin/gvt fetch golang.org/x/tools/cmd/goimports + - ./bin/gvt fetch github.com/wadey/gocovmerge + - ./bin/gvt fetch github.com/golang/lint/golint + - ./bin/gvt fetch 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 . + |