Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Thomas <nick@gitlab.com>2017-09-22 16:35:01 +0300
committerNick Thomas <nick@gitlab.com>2017-09-29 15:04:49 +0300
commitd4aa227433be1b4c415ad8e70f5123b81a496360 (patch)
treee4a38cd7c6ee3fb64208fb53fb815dfc678d9a98 /Makefile.build.mk
parentd5360efc31b0c6b02ed17f77087226bba3916e36 (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.mk20
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 .
+