From efde6a170d924cfe5e65fffdff2f77825f8ce477 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Fri, 23 Jul 2010 23:13:41 +0200 Subject: print version number when invoked with -v --- Makefile | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 7cb5052..6b00e9a 100644 --- a/Makefile +++ b/Makefile @@ -18,6 +18,8 @@ FILES:=$(wildcard *.c) FILES:=$(FILES:.c=.o) VERSION:=$(shell git describe --tags --abbrev=0) +GIT_VERSION:="$(shell git describe --tags --always) ($(shell git log --pretty=format:%cd --date=short -n1))" +CFLAGS += -DVERSION=\"${GIT_VERSION}\" .PHONY: install clean uninstall -- cgit v1.1