Skip to content

Commit

Permalink
only try to print the version from git if there's git installed
Browse files Browse the repository at this point in the history
  • Loading branch information
sjaeckel committed Oct 3, 2017
1 parent 58b7129 commit adcd6ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion makefile_include.mk
Expand Up @@ -111,7 +111,7 @@ LTC_CFLAGS += -Wno-nullability-completeness
endif


GIT_VERSION := $(shell [ -e .git ] && { printf git- ; git describe --tags --always --dirty ; } || echo $(VERSION))
GIT_VERSION := $(shell { [ -e .git ] && which git 2>/dev/null 1>&2 ; } && { printf git- ; git describe --tags --always --dirty ; } || echo $(VERSION))
ifneq ($(GIT_VERSION),)
LTC_CFLAGS += -DGIT_VERSION=\"$(GIT_VERSION)\"
endif
Expand Down

0 comments on commit adcd6ee

Please sign in to comment.