summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 6912473..418dc8e 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,7 @@
CC ?= cc
CFLAGS ?= -O2 -g
-VERSION = 0.1.0-dev
+VERSION ?= $(shell git describe --tags --always --dirty 2>/dev/null \
+ || echo 0.1.0-dev)
WARN = -Wall -Wextra -Wshadow -Wstrict-prototypes -Wmissing-prototypes \
-Wpointer-arith -Wvla -Wformat=2