update Makefile

master
Kevin Schoon 3 years ago
parent eb08755797
commit fb3e9d3184

@ -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 ./...

Loading…
Cancel
Save