summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 458e8e2..0b0b942 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-.PHONY: dev build install test release clean
+.PHONY: dev setup build install test release clean
CGO_ENABLED=0
VERSION=$(shell git describe --abbrev=0 --tags)
@@ -9,8 +9,12 @@ all: dev
dev: build
@./tube -v
+setup:
+ @go get github.com/GeertJohan/go.rice/rice
+
build: clean
- @go build \
+ @go generate $(shell go list)/...
+ @go build \
-tags "netgo static_build" -installsuffix netgo \
-ldflags "-w -X $(shell go list).Version=$(VERSION) -X $(shell go list).Commit=$(COMMIT)" \
.