mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 10:16:41 +00:00
At moment built-in .SUFFIXES variable is not cleaned which slows down the building procedure. Add a dummy rule thus the make won't try to lookup rules for scripts/Makefile.version (this happens when last resort rule is used). Note that this is rather a stub for future convenience which doesn't affect much current build procedure. Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
30 lines
1.1 KiB
Text
30 lines
1.1 KiB
Text
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))
|
|
|
|
export VERSION_MAJOR VERSION_MINOR
|
|
|
|
VERSION_HEADER := include/version.h
|
|
|
|
$(VERSION_HEADER): 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 "static char version[] = {" >> $(VERSION_HEADER)
|
|
$(Q) echo \"$(CRTOOLSVERSION)\" >> $(VERSION_HEADER)
|
|
$(Q) echo "};" >> $(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
|