From 9ca1db576b5eae98ccd6ce8a0fa270da99f64b7e Mon Sep 17 00:00:00 2001 From: Kir Kolyshkin Date: Wed, 5 Oct 2016 04:59:00 +0300 Subject: [PATCH] doc/Makefile: make sure CRIU_VERSION is defined 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 Acked-by: Cyrill Gorcunov Signed-off-by: Pavel Emelyanov --- Documentation/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/Makefile b/Documentation/Makefile index b1d7c7948..6cb90f657 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" > $@