Implement and document %V escape so version only needs to be set once.

This commit is contained in:
Eric S. Raymond 2017-06-30 14:35:18 -04:00
parent 40acab43af
commit e10637c419
3 changed files with 18 additions and 4 deletions

View file

@ -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)