From 123b6ed1dc51a1cba9a6719dacb7110c7bbdc887 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Thu, 19 Mar 2015 11:35:21 +0000 Subject: Improve all makefile to pass verbose build flags --- Makefile | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index dfb9230..1c4e821 100644 --- a/Makefile +++ b/Makefile @@ -49,6 +49,15 @@ BUILD ?= $(shell cc -dumpmachine) # The host we are targetting HOST ?= $(BUILD) +# build verbosity. +# NetSurf uses the kernel style quiet Q variable but we also need to cope with thr GNU V=1 style +ifeq ($(V),1) + Q:= +else + Q=@ +endif + + # only build what we require for the target ifeq ($(TARGET),riscos) NSLIB_TARG := $(NSLIB_ALL_TARG) $(NSLIB_SVGTINY_TARG) $(NSLIB_RO_TARG) @@ -83,25 +92,25 @@ endif # clean macro for each sub target define do_clean - $(MAKE) distclean --directory=$1 HOST=$(HOST) NSSHARED=$(TMP_NSSHARED) + $(MAKE) distclean --directory=$1 HOST=$(HOST) NSSHARED=$(TMP_NSSHARED) Q=$(Q) endef # clean macro for each host sub target define do_build_clean - $(MAKE) distclean --directory=$1 HOST=$(HOST) NSSHARED=$(TMP_NSSHARED) + $(MAKE) distclean --directory=$1 HOST=$(HOST) NSSHARED=$(TMP_NSSHARED) Q=$(Q) endef # prefixed install macro for each sub target define do_prefix_install - $(MAKE) install --directory=$1 HOST=$(HOST) PREFIX=$(TMP_PREFIX) DESTDIR= + $(MAKE) install --directory=$1 HOST=$(HOST) PREFIX=$(TMP_PREFIX) Q=$(Q) DESTDIR= endef # prefixed install macro for each host sub target define do_build_prefix_install - $(MAKE) install --directory=$1 HOST=$(BUILD) PREFIX=$(TMP_PREFIX) DESTDIR= + $(MAKE) install --directory=$1 HOST=$(BUILD) PREFIX=$(TMP_PREFIX) Q=$(Q) DESTDIR= endef -- cgit v1.2.3