chiark / gitweb /
Build system: Add a formulaic setting of Q from V for debugging
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 9 Sep 2015 23:34:18 +0000 (23:34 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 10 Sep 2015 00:15:28 +0000 (00:15 +0000)
We want to be able to disable the many @'s in the Makefiles so
that we can see what they are doing, when things go wrong.  It is
conventional to arrange for setting V=1 to have this effect.

Here we supply a formulaic stanza for either setting Q?=@ or
doing nothing.  (There is sadly no standard place which is
included in all the Makefiles so this is probably best).

In this patch we do not introduce any users of Q yet.  This is
because the next patch, which introduces all the users of Q, can
be generated entirely automatically.  (This is also convenient in
case something needs to be rebased across it.)

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
devLib/Makefile
examples/Gertboard/Makefile
examples/Makefile
examples/PiFace/Makefile
examples/PiGlow/Makefile
examples/q2w/Makefile
gpio/Makefile
pins/Makefile
wiringPi/Makefile

index d62b5324e0640384b7fb063fa5e085cb1efa36ec..21ea512beb13a3681fbfa8a05bba25a41ba82043 100644 (file)
@@ -25,6 +25,10 @@ VERSION=$(shell cat ../VERSION)
 DESTDIR=/usr
 PREFIX=/local
 
+ifneq ($V,1)
+Q ?= @
+endif
+
 STATIC=libwiringPiDev.a
 DYNAMIC=libwiringPiDev.so.$(VERSION)
 
index 75692611550d4ab154e17478eca0a67206ad3507..7be81ab8a112dcfa2b56d3084b2b54f5b8647a27 100644 (file)
@@ -5,6 +5,10 @@
 #      Copyright (c) 2013 Gordon Henderson
 #################################################################################
 
+ifneq ($V,1)
+Q ?= @
+endif
+
 #DEBUG = -g -O0
 DEBUG  = -O3
 CC     = gcc
index c9967dc4bf0c5be1c488888b34b7ba1803fd7914..7671b0873be79d7744ca8ffee0dfda5851468157 100644 (file)
@@ -22,6 +22,9 @@
 #    along with wiringPi.  If not, see <http://www.gnu.org/licenses/>.
 #################################################################################
 
+ifneq ($V,1)
+Q ?= @
+endif
 
 #DEBUG = -g -O0
 DEBUG  = -O3
index 0bde334ffdb7974d0c23f54509d63836a69f15ec..7bab7ced67b4bdf33a27a1c8779806531d22a68a 100644 (file)
@@ -22,6 +22,9 @@
 #    along with wiringPi.  If not, see <http://www.gnu.org/licenses/>.
 #################################################################################
 
+ifneq ($V,1)
+Q ?= @
+endif
 
 #DEBUG = -g -O0
 DEBUG  = -O3
index 8d31141a08944cea35c14e1614e7c1edb416fd56..6d8d5bf54f0f43e353454c445227d28b0136fd30 100644 (file)
@@ -22,6 +22,9 @@
 #    along with wiringPi.  If not, see <http://www.gnu.org/licenses/>.
 #################################################################################
 
+ifneq ($V,1)
+Q ?= @
+endif
 
 #DEBUG = -g -O0
 DEBUG  = -O3
index 150c825f6ac7ed46cdcb95fb4ecd908254066968..a7bc337a405a1e5a6a060aa08faae2d55c77f877 100644 (file)
@@ -22,6 +22,9 @@
 #    along with wiringPi.  If not, see <http://www.gnu.org/licenses/>.
 #################################################################################
 
+ifneq ($V,1)
+Q ?= @
+endif
 
 #DEBUG = -g -O0
 DEBUG  = -O3
index 449986ebd8486c2e44c4a858003e6a108b991269..df05dbee8f7d2e17b87104cda2e0fbc45aacd717 100644 (file)
 DESTDIR=/usr
 PREFIX=/local
 
+ifneq ($V,1)
+Q ?= @
+endif
+
 #DEBUG = -g -O0
 DEBUG  = -O2
 CC     = gcc
index fd34ee930ac8fc730b659b1713652d2a0ad70a7c..649961b4e729a7382f27e19eb86e22700f8cea37 100644 (file)
@@ -1,6 +1,10 @@
 
 SRC    =       pins.tex
 
+ifneq ($V,1)
+Q ?= @
+endif
+
 
 all:           ${SRC}
        @echo   Generating DVI
index 015a894f144a08d63e8f2c3a6901b97f13fae6e8..a04f907f296f93d21a9cc617d6bf7bccb1717084 100644 (file)
@@ -25,6 +25,10 @@ VERSION=$(shell cat ../VERSION)
 DESTDIR=/usr
 PREFIX=/local
 
+ifneq ($V,1)
+Q ?= @
+endif
+
 STATIC=libwiringPi.a
 DYNAMIC=libwiringPi.so.$(VERSION)