From 61a9e72f4c7276771d4ae966918358c27b90bc23 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Tue, 18 Jun 2019 09:42:41 -0400 Subject: Add aerc -v to print the installed version --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 190fa4c..e511620 100644 --- a/Makefile +++ b/Makefile @@ -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 -- cgit 1.4.1-2-gfad0