Fix build tasks

This commit is contained in:
2016-11-17 23:38:35 +00:00
parent 55189a13d1
commit b4722b1011

View File

@@ -7,13 +7,13 @@ DEV_DEPS = github.com/kardianos/govendor \
BINNAME = ozuio
BINARY = bin/${BINNAME}
BINDIR = $(shell dirname ${BINARY})
SOURCES = $(shell find . -name '*.go')
SOURCES = $(shell find . -name '*.go' -o -name 'VERSION')
VERSION = $(shell cat VERSION)
OSARCH = "linux/amd64 darwin/amd64"
.DEFAULT_GOAL: $(BINARY)
$(BINARY): $(SOURCES)
go build -o ${BINARY}
go build -o ${BINARY} -ldflags "-X main.Version=${VERSION}"
.PHONY: build
build: $(BINARY)