diff --git a/Makefile b/Makefile index 3a67d59..7dddebe 100644 --- a/Makefile +++ b/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 diff --git a/picoc.h b/picoc.h index 2ac0f06..1284663 100644 --- a/picoc.h +++ b/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