call shell to get EPICS_SITE_VERSION only when compiling EPICS base

This commit is contained in:
2019-09-20 09:02:35 +02:00
parent 5f6b1e2b16
commit 3a774d37f8

View File

@@ -161,7 +161,9 @@ USE_POSIX_THREAD_PRIORITY_SCHEDULING = YES
# Site version number, if set will append '-' and this string to the
# EPICS version number string that is reported by many tools.
ifeq ($(INSTALL_LOCATION),$(EPICS_BASE))
EPICS_SITE_VERSION=$(shell $(PERL) -MPOSIX -e 'print strftime "%Y-%m-%d_$(shell git describe --tags --dirty)", localtime')
endif
# For GNU compiler, use pipes rather than temporary files for
# communication between the various stages of compilation.