add git specific tag and hash info

This commit is contained in:
Joseph Poirier 2015-06-06 22:27:38 -05:00
parent 0d48ad9625
commit 91a9a6df12
2 changed files with 2 additions and 2 deletions

View file

@ -1,5 +1,5 @@
CC=gcc
CFLAGS=-Wall -pedantic -g -DUNIX_HOST -DVER=\"`git show-ref --abbrev=8 --head --hash head`\"
CFLAGS=-Wall -pedantic -g -DUNIX_HOST -DVER=\"`git show-ref --abbrev=8 --head --hash head`\" -DTAG\"`git describe --abbrev=0 --tags`\"
LIBS=-lm -lreadline
TARGET = picoc

View file

@ -5,7 +5,7 @@
/* picoc version number */
#ifdef VER
#define PICOC_VERSION "v2.2 beta r" VER /* VER is the subversion version number, obtained via the Makefile */
#define PICOC_VERSION "v2.2 beta r" VER /* VER is the git hash number, obtained via the Makefile */
#else
#define PICOC_VERSION "v2.2"
#endif