Update Makefile

This commit is contained in:
Tomas Kral
2018-01-30 14:20:55 +01:00
parent 2222b1a41b
commit 64063b260a

View File

@@ -1,4 +1,7 @@
BUILD_FLAGS := -ldflags="-w -X github.com/redhat-developer/ocdev/cmd.GITCOMMIT=$(GITCOMMIT)"
PROJECT := github.com/redhat-developer/ocdev
GITCOMMIT := $(shell git rev-parse --short HEAD 2>/dev/null)
PKGS := $(shell go list ./... | grep -v $(PROJECT)/vendor)
BUILD_FLAGS := -ldflags="-w -X $(PROJECT)/cmd.GITCOMMIT=$(GITCOMMIT)"
default: bin
@@ -26,3 +29,10 @@ lint:
.PHONY: vet
vet:
go vet $(PKGS)
# install tools used for building, tests and validations
.PHONY: goget-tools
goget-tools:
go get -u github.com/golang/dep/cmd/dep
go get -u github.com/golang/lint/golint