add git specific tag and hash info
This commit is contained in:
parent
0d48ad9625
commit
91a9a6df12
2
Makefile
2
Makefile
|
@ -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
|
||||
|
|
2
picoc.h
2
picoc.h
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue