diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -1,5 +1,13 @@ +VERSION = $(shell git describe --tags) + all: - GO111MODULE=off go build -v -x + GO111MODULE=off go build -v -x \ + -ldflags "-X main.VERSION=${VERSION}" + ./helloworld + +install: + GO111MODULE=off go install -v -x \ + -ldflags "-X main.VERSION=${VERSION}" ./helloworld gocui: |
