Implement and document %V escape so version only needs to be set once.
[open-adventure.git] / Makefile
index c58e6d7b020088cad3cdfb382ad05c710c466048..2e6997a5393c8cddecaae56cec4d95eef4fd6167 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -29,7 +29,7 @@ VERS=$(shell sed -n <NEWS '/^[0-9]/s/:.*//p' | head -1)
 .PHONY: debug indent release refresh dist linty html clean
 
 CC?=gcc
-CCFLAGS+=-std=c99 -D _DEFAULT_SOURCE -Wpedantic -O2
+CCFLAGS+=-std=c99 -D_DEFAULT_SOURCE -DVERSION=\"$(VERS)\" -Wpedantic -O2
 LIBS=
 UNAME_S := $(shell uname -s)
 ifeq ($(UNAME_S),Linux)