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:
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 .
+