diff options
author | Drew DeVault <sir@cmpwn.com> | 2019-06-18 09:42:41 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-06-18 09:50:06 -0400 |
commit | 74af57b6c617382ed0e8cd79626cac98ffc2e549 (patch) | |
tree | 213bb28bfd9ebafed60c91f3c0634ee72c6251a6 /Makefile | |
parent | ce475e4952fe182a15d8897c3cd94f59df4b64e1 (diff) | |
download | aerc-74af57b6c617382ed0e8cd79626cac98ffc2e549.tar.gz |
Add aerc -v to print the installed version
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1,6 +1,9 @@ .POSIX: .SUFFIXES: .SUFFIXES: .1 .5 .7 .1.scd .5.scd .7.scd + +VERSION?=0.1.1 + VPATH=doc PREFIX?=/usr/local _INSTDIR=$(DESTDIR)$(PREFIX) @@ -16,6 +19,7 @@ aerc: $(GOSRC) go build $(GOFLAGS) \ -ldflags "-X main.Prefix=$(PREFIX)" \ -ldflags "-X main.ShareDir=$(SHAREDIR)" \ + -ldflags "-X main.Version=$(VERSION)" \ -o $@ aerc.conf: config/aerc.conf.in |