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)
ifeq "$(VERSION)" ""
VERSION := UNKNOWN
endif
LDFLAGS=\
-X github.com/kevinschoon/pomo/pkg/internal/version.Version=$(VERSION)
-X github.com/kevinschoon/pomo/pkg/internal.Version=$(VERSION)
.PHONY: \
test \
@ -23,9 +20,6 @@ bin/pomo: test
cd cmd/pomo && \
go build -ldflags '${LDFLAGS}' -o ../../$@
#bindata.go: tomato-icon.png
# go-bindata -pkg main -o $@ $^
test:
go test ./...
go vet ./...