From b4722b10117d9acca8f3df924b2f0c0902b3a793 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Thu, 17 Nov 2016 23:38:35 +0000 Subject: [PATCH] Fix build tasks --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 348ba26..0a418e3 100644 --- a/Makefile +++ b/Makefile @@ -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)