update Makefile

This commit is contained in:
Kevin Schoon 2021-07-28 21:36:33 -04:00
parent eb08755797
commit fb3e9d3184
1 changed files with 1 additions and 7 deletions

View File

@ -1,13 +1,10 @@
DOCKER_CMD=docker run --rm -ti -w /build/pomo -v $$PWD:/build/pomo
DOCKER_IMAGE=pomo-build
VERSION ?= $(shell git describe --tags 2>/dev/null) VERSION ?= $(shell git describe --tags 2>/dev/null)
ifeq "$(VERSION)" "" ifeq "$(VERSION)" ""
VERSION := UNKNOWN VERSION := UNKNOWN
endif endif
LDFLAGS=\ LDFLAGS=\
-X github.com/kevinschoon/pomo/pkg/internal/version.Version=$(VERSION) -X github.com/kevinschoon/pomo/pkg/internal.Version=$(VERSION)
.PHONY: \ .PHONY: \
test \ test \
@ -23,9 +20,6 @@ bin/pomo: test
cd cmd/pomo && \ cd cmd/pomo && \
go build -ldflags '${LDFLAGS}' -o ../../$@ go build -ldflags '${LDFLAGS}' -o ../../$@
#bindata.go: tomato-icon.png
# go-bindata -pkg main -o $@ $^
test: test:
go test ./... go test ./...
go vet ./... go vet ./...