[CRIU] [PATCH 4/4] Makefile.inc: add conditional --no-print-directory
Pavel Emelyanov
xemul at parallels.com
Wed Apr 24 05:34:02 EDT 2013
On 04/24/2013 02:12 AM, Kir Kolyshkin wrote:
> 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.
Andrey will hate you for dropping directories, as it makes vim+make work poorly.
Andrey?
>
> 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 =
>
More information about the CRIU
mailing list