mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
use ‚:=‚ assignments instead of ‚=‚ for improved compilation speeds
This avoids repeated invocations of git
This commit is contained in:
parent
788a55da27
commit
12d43eebd9
1 changed files with 5 additions and 5 deletions
10
Makefile
10
Makefile
|
@ -69,16 +69,16 @@ BUILDDIR := $(BUILDDIR)/$(VARIANT)
|
|||
SRCDIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
|
||||
|
||||
# Add git revision and build variant defines
|
||||
VERSION = $(shell git describe --tags --abbrev=0 --match v*)
|
||||
VERSION_NUM = $(shell VERSION=$(VERSION); echo $${VERSION:1})
|
||||
VERSION := $(shell git describe --tags --abbrev=0 --match v*)
|
||||
VERSION_NUM := $(shell VERSION=$(VERSION); echo $${VERSION:1})
|
||||
|
||||
ifdef CI
|
||||
GIT_REV = $(shell REV=$${CI_BUILD_REF}; echo $${REV:0:7})
|
||||
GIT_REV := $(shell REV=$${CI_BUILD_REF}; echo $${REV:0:7})
|
||||
GIT_BRANCH = ${CI_BUILD_REF_NAME}
|
||||
VARIANT := $(VARIANT)-ci
|
||||
else
|
||||
GIT_REV = $(shell REV=$$(git rev-parse HEAD); echo $${REV:0:7})
|
||||
GIT_BRANCH = $(shell git rev-parse --abbrev-ref HEAD)
|
||||
GIT_REV := $(shell REV=$$(git rev-parse HEAD); echo $${REV:0:7})
|
||||
GIT_BRANCH := $(shell git rev-parse --abbrev-ref HEAD)
|
||||
endif
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue