chiark / gitweb /
show git version in output
[matchsticks-search.git] / Makefile
index 96ede561bacd00501a7f4801ee763c24b640ae61..c8e179f72d037e38dcaacd48cc7fa1528cbde0ff 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,5 @@
 CFLAGS += -Wall -Wwrite-strings -Wstrict-prototypes -g -O2 -std=gnu99
+CPPFLAGS += -DVERSION="\"`git-describe --tags --dirty=+`\""
 LC_CTYPE=C
 LDLIBS = -lpub -lglpk -lm