[CRIU] [PATCH 2/3] doc/Makefile: make sure CRIU_VERSION is defined

Kir Kolyshkin kir at openvz.org
Tue Oct 4 18:59:12 PDT 2016


I just discovered that if I run make right from Documentation/ subdir,
CRIU_VERSION is not defined so the generated man page is lacking it.

Let's fix by conditionally including ../Makefile.versions.

Signed-off-by: Kir Kolyshkin <kir at openvz.org>
---
 Documentation/Makefile | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/Documentation/Makefile b/Documentation/Makefile
index b1d7c79..6cb90f6 100644
--- a/Documentation/Makefile
+++ b/Documentation/Makefile
@@ -28,6 +28,9 @@ check:
 		$$B --version > /dev/null || exit 1;	\
 	done
 
+ifeq ($(CRIU_VERSION),)
+ include ../Makefile.versions
+endif
 $(FOOTER): ../Makefile.versions
 	$(call msg-gen, $@)
 	$(Q) echo ":doctype:       manpage"		>  $@
-- 
2.7.4



More information about the CRIU mailing list