diff options
author | Michael Stapelberg <michael@stapelberg.de> | 2010-07-23 23:13:41 +0200 |
---|---|---|
committer | Michael Stapelberg <michael@stapelberg.de> | 2010-07-23 23:13:41 +0200 |
commit | efde6a170d924cfe5e65fffdff2f77825f8ce477 (patch) | |
tree | e057d1565bff36cde60064a97d4cc72ffab0ad57 /Makefile | |
parent | 5d43c2053868dd1f3932dd5330df5ed57039cbbb (diff) |
print version number when invoked with -v
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |