mirror of
https://github.com/redhat-developer/odo.git
synced 2025-10-19 03:06:19 +03:00
Update Makefile
This commit is contained in:
12
Makefile
12
Makefile
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user