]> rtime.felk.cvut.cz Git - jailhouse.git/commitdiff
tooling: Silence recursive make calls
authorJan Kiszka <jan.kiszka@siemens.com>
Sun, 21 Sep 2014 06:40:44 +0000 (08:40 +0200)
committerJan Kiszka <jan.kiszka@siemens.com>
Wed, 24 Sep 2014 16:58:09 +0000 (18:58 +0200)
Generalize install.mk to include.mk so that it can host the Q tag
definition. Apply this tag on the recursive make call of the top-level
makefile.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Makefile
scripts/include.mk [moved from scripts/install.mk with 97% similarity]
tools/Makefile

index 673ab42703d8cfe6d6cdff3d09251c94de210de6..9d12b64da07cb7f1dd010c989108c6fd661bc55e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -14,7 +14,7 @@
 all: modules tools
 
 # includes installation-related variables and definitions
-include scripts/install.mk
+include scripts/include.mk
 
 # out-of-tree build for our kernel-module, firmware and inmates
 KDIR ?= /lib/modules/`uname -r`/build
@@ -23,7 +23,7 @@ INSTALL_MOD_PATH ?= $(DESTDIR)
 export INSTALL_MOD_PATH
 
 define run-kbuild =
-       $(MAKE) -C $(KDIR) M=$$PWD $@
+       $(Q)$(MAKE) -C $(KDIR) M=$$PWD $@
 endef
 
 modules:
@@ -33,12 +33,12 @@ hypervisor/jailhouse.bin: modules
 
 # recursive build of tools
 tools:
-       $(MAKE) -C tools
+       $(Q)$(MAKE) -C tools
 
 # clean up kernel and tools
 clean:
        $(run-kbuild)
-       $(MAKE) -C tools $@
+       $(Q)$(MAKE) -C tools $@
 
 modules_install: modules
        $(run-kbuild)
@@ -47,6 +47,6 @@ firmware_install: hypervisor/jailhouse.bin $(DESTDIR)$(firmwaredir)
        $(INSTALL_DATA) $^
 
 install: modules_install firmware_install
-       $(MAKE) -C tools $@
+       $(Q)$(MAKE) -C tools $@
 
 .PHONY: modules_install install clean firmware_install modules tools
similarity index 97%
rename from scripts/install.mk
rename to scripts/include.mk
index b60d5410913d891ef2903f8ffccc841ec58793b2..b0e2bbce8d3a360e0cef4bb54a93b5e233219ac5 100644 (file)
 # the COPYING file in the top-level directory.
 #
 
+ifeq ($(V),1)
+       Q =
+else
+       Q = @
+endif
+
 prefix      ?= /usr/local
 exec_prefix ?= $(prefix)
 sbindir     ?= $(exec_prefix)/sbin
index 6e4fa265b825a9e2a58f4193580d3eb8c2d3c968..13d59e4f7727abab490e14a5d664acedb04a052f 100644 (file)
 # the COPYING file in the top-level directory.
 #
 
-ifeq ($(V),1)
-       Q =
-else
-       Q = @
-endif
-
 CC = $(CROSS_COMPILE)gcc
 
 CFLAGS = -g -O3 -I.. -DLIBEXECDIR=\"$(libexecdir)\" \
@@ -50,7 +44,7 @@ endef
 all: $(TARGETS)
 
 # includes installation-related variables and definitions
-include ../scripts/install.mk
+include ../scripts/include.mk
 
 jailhouse: jailhouse.c ../jailhouse.h ../VERSION
        $(CC) $(CFLAGS) -o $@ $<