Commit 47eac37e authored by Pavel Emelyanov's avatar Pavel Emelyanov

make: Move criu version constants from scripts/ to root Makefile

It's nicer to have them there.
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent ff328579
VERSION_MAJOR := 0
VERSION_MINOR := 3
VERSION_SUBLEVEL :=
VERSION_EXTRA :=
VERSION_NAME :=
export VERSION_MAJOR VERSION_MINOR VERSION_SUBLEVEL VERSION_EXTRA VERSION_NAME
# #
# FIXME zdtm building procedure requires implicit rules # FIXME zdtm building procedure requires implicit rules
# so I can't use strict make file mode and drop completely # so I can't use strict make file mode and drop completely
......
VERSION_MAJOR := 0
VERSION_MINOR := 3
VERSION_SUBLEVEL :=
VERSION_EXTRA :=
VERSION_NAME :=
CRTOOLSVERSION := $(VERSION_MAJOR)$(if $(VERSION_MINOR),.$(VERSION_MINOR))$(if $(VERSION_SUBLEVEL),.$(VERSION_SUBLEVEL)) CRTOOLSVERSION := $(VERSION_MAJOR)$(if $(VERSION_MINOR),.$(VERSION_MINOR))$(if $(VERSION_SUBLEVEL),.$(VERSION_SUBLEVEL))
export VERSION_MAJOR VERSION_MINOR
VERSION_HEADER := include/version.h VERSION_HEADER := include/version.h
$(VERSION_HEADER): scripts/Makefile.version $(VERSION_HEADER): Makefile scripts/Makefile.version
$(E) " GEN " $@ $(E) " GEN " $@
$(Q) echo "/* Autogenerated, do not edit */" > $(VERSION_HEADER) $(Q) echo "/* Autogenerated, do not edit */" > $(VERSION_HEADER)
$(Q) echo "#ifndef __CR_VERSION_H__" >> $(VERSION_HEADER) $(Q) echo "#ifndef __CR_VERSION_H__" >> $(VERSION_HEADER)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment