fix Makefile
parent
8fda65108f
commit
530a23e28c
4
Makefile
4
Makefile
|
|
@ -1,5 +1,5 @@
|
|||
NAME := k9s
|
||||
PACKAGE := github.com/derailed/$(NAME)/internal
|
||||
PACKAGE := github.com/derailed/$(NAME)
|
||||
GIT := $(shell git rev-parse --short HEAD)
|
||||
DATE := $(shell date +%FT%T%Z)
|
||||
VERSION := v0.12.0
|
||||
|
|
@ -19,7 +19,7 @@ cover: ## Run test coverage suite
|
|||
build: ## Builds the CLI
|
||||
@go build \
|
||||
-ldflags "-w -X ${PACKAGE}/cmd.version=${VERSION} -X ${PACKAGE}/cmd.commit=${GIT} -X ${PACKAGE}/cmd.date=${DATE}" \
|
||||
-a -tags netgo -o execs/${NAME} *.go
|
||||
-a -tags netgo -o execs/${NAME} main.go
|
||||
|
||||
img: ## Build Docker Image
|
||||
@docker build --rm -t ${IMAGE} .
|
||||
|
|
|
|||
Loading…
Reference in New Issue