Get version string from git, instead of hardcoded in makefile
This commit is contained in:
parent
734c1c10ec
commit
078ba792f0
1 changed files with 1 additions and 1 deletions
2
Makefile
2
Makefile
|
|
@ -1,7 +1,7 @@
|
|||
GITREV ?= $(shell git describe --dirty --always)
|
||||
BLDDATE ?= $(shell date -I)
|
||||
CR_YEAR ?= $(shell date +%Y)
|
||||
VERSION ?= "v0.2.1"
|
||||
VERSION ?= "$(shell git describe --tags --always --abbrev=0 2>/dev/null || git rev-parse --short HEAD)"
|
||||
|
||||
CFLAGS ?= -Wall -Wextra -Wpedantic -O2 -std=gnu99
|
||||
CFLAGS += -DGITREV='"$(GITREV)"'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue