mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-25 19:14:04 +00:00
Defining it as static char is a bad idea especially if it get included and never used -- we will get "unused" variable error. Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
20 lines
907 B
Text
20 lines
907 B
Text
CRTOOLSVERSION := $(VERSION_MAJOR)$(if $(VERSION_MINOR),.$(VERSION_MINOR))$(if $(VERSION_SUBLEVEL),.$(VERSION_SUBLEVEL))
|
|
|
|
VERSION_HEADER := include/version.h
|
|
|
|
$(VERSION_HEADER): Makefile scripts/Makefile.version
|
|
$(E) " GEN " $@
|
|
$(Q) echo "/* Autogenerated, do not edit */" > $(VERSION_HEADER)
|
|
$(Q) echo "#ifndef __CR_VERSION_H__" >> $(VERSION_HEADER)
|
|
$(Q) echo "#define __CR_VERSION_H__" >> $(VERSION_HEADER)
|
|
$(Q) echo "#define CRIU_VERSION \"$(CRTOOLSVERSION)\"" >> $(VERSION_HEADER)
|
|
$(Q) echo "#define CRIU_VERSION_MAJOR " $(VERSION_MAJOR) >> $(VERSION_HEADER)
|
|
$(Q) echo "#define CRIU_VERSION_MINOR " $(VERSION_MINOR) >> $(VERSION_HEADER)
|
|
$(Q) echo "#endif /* __CR_VERSION_H__ */" >> $(VERSION_HEADER)
|
|
|
|
##
|
|
## In case if someone add last resort rule
|
|
## together with .SUFFIXES not cleaned, this
|
|
## will slow down the build procedure
|
|
scripts/Makefile.version::
|
|
@echo > /dev/null
|