]> rtime.felk.cvut.cz Git - jailhouse.git/commitdiff
tools: Hide some secondary build commands
authorJan Kiszka <jan.kiszka@siemens.com>
Wed, 27 Aug 2014 18:33:21 +0000 (20:33 +0200)
committerJan Kiszka <jan.kiszka@siemens.com>
Thu, 28 Aug 2014 16:17:00 +0000 (18:17 +0200)
By default, hide commands that are not essential for following the build
(or installation) process. Those can still be revealed by specifying
V=1. chmod is a first candidate.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
tools/Makefile

index b375d69fdab6f0084a2ebf6c1fa3a4fb3b23ac2e..5a8659e94b156f00f477b50e6cfc7288849bc993 100644 (file)
@@ -14,6 +14,12 @@ prefix      ?= /usr/local
 exec_prefix ?= $(prefix)
 libexecdir  ?= $(exec_prefix)/libexec
 
+ifeq ($(V),1)
+       Q =
+else
+       Q = @
+endif
+
 CC = $(CROSS_COMPILE)gcc
 
 CFLAGS = -g -O3 -I.. -I../hypervisor/include -DLIBEXECDIR=\"$(libexecdir)\" \
@@ -38,7 +44,7 @@ jailhouse: jailhouse.c ../jailhouse.h ../hypervisor/include/jailhouse/cell-confi
 
 jailhouse-config-collect: jailhouse-config-create jailhouse-config-collect.tmpl
        ./$< -g $@
-       chmod +x $@
+       $(Q)chmod +x $@
 
 .PHONY: clean no_python_mako