summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2015-03-19 11:35:21 +0000
committerVincent Sanders <vince@kyllikki.org>2015-03-19 11:35:21 +0000
commit123b6ed1dc51a1cba9a6719dacb7110c7bbdc887 (patch)
tree80ad7d1d3440a8168e6ad012ee803e0fd6cf1096
parent3d64cbf8e8eb9ba01779f2cca30ed03efc07bd60 (diff)
downloadnetsurf-all-123b6ed1dc51a1cba9a6719dacb7110c7bbdc887.tar.gz
netsurf-all-123b6ed1dc51a1cba9a6719dacb7110c7bbdc887.tar.bz2
Improve all makefile to pass verbose build flags
-rw-r--r--Makefile17
1 files 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