diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2015-02-18 14:13:11 +0100 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2015-02-18 14:13:11 +0100 |
commit | 083023711b5248c5511185e536679020b6696486 (patch) | |
tree | 10b1be43f9e551f136005b321853e03cb684de7c /Makefile | |
parent | 2bab52017fb4901e9c642fab585f7169e6d11253 (diff) |
llmnrd, llmnr-query: Add git id to version output
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -3,6 +3,7 @@ # Copyright (C) 2014-2015 Tobias Klauser <tklauser@distanz.ch> VERSION = 0.1-rc1 +GIT_VERSION = `git describe --always` # llmnrd binary D_P = llmnrd @@ -20,7 +21,7 @@ INSTALL = install CFLAGS ?= -W -Wall -O2 LDFLAGS ?= -CFLAGS += -DVERSION_STRING=\"v$(VERSION)\" +CFLAGS += -DVERSION_STRING=\"v$(VERSION)\" -DGIT_VERSION=\"$(GIT_VERSION)\" ifeq ($(DEBUG), 1) CFLAGS += -g -DDEBUG |