[CRIU] [PATCH 4/4] Makefile.inc: add conditional --no-print-directory

Kir Kolyshkin kir at openvz.org
Tue Apr 23 18:12:47 EDT 2013


Let's add --no-print-directory to MAKEFLAGS only in case of silent
build.

Before:

[kir at kirpad crtools]$ make
make[1]: Entering directory `/vz/kir/git/crtools'
make[1]: Leaving directory `/vz/kir/git/crtools'
make[1]: Entering directory `/vz/kir/git/crtools'
make[1]: Leaving directory `/vz/kir/git/crtools'
make[1]: Entering directory `/vz/kir/git/crtools'
make[1]: Leaving directory `/vz/kir/git/crtools'
make[1]: Entering directory `/vz/kir/git/crtools'
make[2]: Entering directory `/vz/kir/git/crtools'
make[2]: Leaving directory `/vz/kir/git/crtools'
make[2]: Entering directory `/vz/kir/git/crtools'
make[2]: `arch/x86/syscalls.built-in.o' is up to date.
make[2]: Leaving directory `/vz/kir/git/crtools'
make[2]: Entering directory `/vz/kir/git/crtools'
make[2]: `arch/x86/crtools.built-in.o' is up to date.
make[2]: Leaving directory `/vz/kir/git/crtools'
make[2]: Entering directory `/vz/kir/git/crtools'
make[2]: Leaving directory `/vz/kir/git/crtools'
make[2]: Entering directory `/vz/kir/git/crtools'
make[2]: `pie/util-net.o' is up to date.
make[2]: Leaving directory `/vz/kir/git/crtools'
make[2]: Entering directory `/vz/kir/git/crtools'
make[2]: Leaving directory `/vz/kir/git/crtools'
make[2]: Entering directory `/vz/kir/git/crtools'
make[2]: `built-in.o' is up to date.
make[2]: Leaving directory `/vz/kir/git/crtools'
make[1]: Leaving directory `/vz/kir/git/crtools'

After:

[kir at kirpad crtools]$ make
make[2]: `arch/x86/syscalls.built-in.o' is up to date.
make[2]: `arch/x86/crtools.built-in.o' is up to date.
make[2]: `pie/util-net.o' is up to date.
make[2]: `built-in.o' is up to date.

Cc: Cyrill Gorcunov <gorcunov at openvz.org>
Signed-off-by: Kir Kolyshkin <kir at openvz.org>
---
 Makefile.inc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Makefile.inc b/Makefile.inc
index f11cdcc..ee0b62c 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -3,6 +3,7 @@
 ifeq ($(strip $(V)),)
 	E = @echo
 	Q = @
+	MAKEFLAGS += --no-print-directory
 else
 	E = @\#
 	Q =
-- 
1.8.1.4



More information about the CRIU mailing list