diff options
| author | James Mills <prologic@shortcircuit.net.au> | 2020-03-21 09:55:06 +1000 |
|---|---|---|
| committer | James Mills <prologic@shortcircuit.net.au> | 2020-03-21 09:55:06 +1000 |
| commit | 4dae45a68ff1ff32a251a5835b2a2723ae125d1c (patch) | |
| tree | b3abe641f39f50ac444aee2bb617d7b4ab44187d /Makefile | |
| parent | 76fa613b7eaf1c8626d2a51901c623af7bf1a665 (diff) | |
Restructured source code layout, Added rice support for templates and static assets
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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)" \ . |
