update Makefile
This commit is contained in:
parent
eb08755797
commit
fb3e9d3184
8
Makefile
8
Makefile
|
@ -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 ./...
|
||||||
|
|
Loading…
Reference in New Issue