mirror of
https://github.com/Tha14/toxic.git
synced 2025-06-19 23:36:36 +02:00
Version: add revision only if git is available
This commit is contained in:
@ -1,7 +1,11 @@
|
||||
# Version
|
||||
TOXIC_VERSION = 0.5.2
|
||||
REV = $(shell git rev-list HEAD --count)
|
||||
VERSION = $(TOXIC_VERSION)_r$(REV)
|
||||
REV = $(shell if which git &>/dev/null ; then git rev-list HEAD --count 2>/dev/null || echo -n "error" ; else echo -n "error" ; fi)
|
||||
ifneq ($(REV), error)
|
||||
VERSION = $(TOXIC_VERSION)_r$(REV)
|
||||
else
|
||||
VERSION = $(TOXIC_VERSION)
|
||||
endif
|
||||
|
||||
# Project directories
|
||||
DOC_DIR = $(BASE_DIR)/doc
|
||||
|
Reference in New Issue
Block a user