makefile: Make sure to gather git commit-id whenever possible

This commit is contained in:
Mark Pizzolato 2017-09-11 14:54:48 -07:00
parent 4b16e43e3e
commit 8f9c763f67

View file

@ -188,6 +188,13 @@ ifeq ($(WIN32),) #*nix Environments (&& cygwin)
ifneq (,$(strip $(GIT_HOOKS)))
$(info *** Warning - Error installing git hooks *** $(GIT_HOOKS))
endif
else
ifneq (commit-id-exists,$(shell if $(TEST) -e .git-commit-id; then echo commit-id-exists; fi))
GIT_HOOKS = $(shell ./.git/hooks/post-checkout)
ifneq (,$(strip $(GIT_HOOKS)))
$(info *** Warning - Error executing git hooks *** $(GIT_HOOKS))
endif
endif
endif
endif
LTO_EXCLUDE_VERSIONS =