diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -1,2 +1,7 @@ -powxy: *.go +powxy: *.go version.go go build -o powxy + +version.go: + printf 'package main\n\nfunc init() {\n\tglobal.Version = "%s"\n}\n' $(shell git describe --tags --always --dirty) > $@ + +.PHONY: version.go |