change assignment, else this evaluates for every file
This commit is contained in:
parent
831976f3a2
commit
650e0b26cc
@ -3,11 +3,11 @@ CP=$(PREFIX)arm-none-eabi-objcopy
|
|||||||
SZ=$(PREFIX)arm-none-eabi-size
|
SZ=$(PREFIX)arm-none-eabi-size
|
||||||
AR=$(PREFIX)arm-none-eabi-ar
|
AR=$(PREFIX)arm-none-eabi-ar
|
||||||
|
|
||||||
VERSION=$(shell git describe --abbrev=0 )
|
VERSION:=$(shell git describe --abbrev=0 )
|
||||||
VERSION_FULL=$(shell git describe)
|
VERSION_FULL:=$(shell git describe)
|
||||||
VERSION_MAJ=$(shell python -c 'print("$(VERSION)".split(".")[0])')
|
VERSION_MAJ:=$(shell python -c 'print("$(VERSION)".split(".")[0])')
|
||||||
VERSION_MIN=$(shell python -c 'print("$(VERSION)".split(".")[1])')
|
VERSION_MIN:=$(shell python -c 'print("$(VERSION)".split(".")[1])')
|
||||||
VERSION_PAT=$(shell python -c 'print("$(VERSION)".split(".")[2])')
|
VERSION_PAT:=$(shell python -c 'print("$(VERSION)".split(".")[2])')
|
||||||
|
|
||||||
VERSION_FLAGS= -DSOLO_VERSION_MAJ=$(VERSION_MAJ) -DSOLO_VERSION_MIN=$(VERSION_MIN) \
|
VERSION_FLAGS= -DSOLO_VERSION_MAJ=$(VERSION_MAJ) -DSOLO_VERSION_MIN=$(VERSION_MIN) \
|
||||||
-DSOLO_VERSION_PATCH=$(VERSION_PAT) -DVERSION=\"$(VERSION_FULL)\"
|
-DSOLO_VERSION_PATCH=$(VERSION_PAT) -DVERSION=\"$(VERSION_FULL)\"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user