chiark / gitweb /
Build system: Use Automake 1.11 `silent-rules'.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 22 May 2010 11:43:56 +0000 (12:43 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sun, 30 May 2010 14:22:54 +0000 (15:22 +0100)
This makes warnings much easier to spot in the build transcript.

Makefile.am
configure.ac
init/Makefile.am
keys/Makefile.am
mon/Makefile.am
peerdb/Makefile.am
py/Makefile.am
svc/Makefile.am
vars.am

index 7cbef362826cb4ef679cf5d5cbfc26d07435caf1..3984556b47f68aed0efc473b445e4793e9c8c475 100644 (file)
@@ -79,7 +79,7 @@ EXTRA_DIST            += tripe.pc.in
 CLEANFILES             += tripe.pc
 
 tripe.pc: tripe.pc.in Makefile
-       $(confsubst) $(srcdir)/tripe.pc.in >$@.new $(SUBSTITUTIONS) && \
+       $(SUBST) $(srcdir)/tripe.pc.in >$@.new $(SUBSTITUTIONS) && \
                mv $@.new $@
 
 ###--------------------------------------------------------------------------
index 3ad53dc8ab8ac93ddaa5bea196dac263c182a854..54caf9d1ae48c44a73f88fb9fff451234e67e2c6 100644 (file)
@@ -31,6 +31,7 @@ AC_INIT([tripe], AUTO_VERSION, [mdw@distorted.org.uk])
 AC_CONFIG_SRCDIR([server/tripe.h])
 AC_CONFIG_AUX_DIR([config])
 AM_INIT_AUTOMAKE([foreign])
+mdw_SILENT_RULES
 
 AC_PROG_CC
 AM_PROG_CC_C_O
index e8d662d5852fb9a97c3901c29ed34393f22fd4c3..0ce08512f197cd7982f846c4f4bb838d6f8ba945 100644 (file)
@@ -37,7 +37,7 @@ EXTRA_DIST            += tripe-init.in
 CLEANFILES             += tripe-init
 
 tripe-init: tripe-init.in Makefile
-       $(confsubst) $(srcdir)/tripe-init.in >$@.new $(SUBSTITUTIONS) && \
+       $(SUBST) $(srcdir)/tripe-init.in >$@.new $(SUBSTITUTIONS) && \
                chmod +x $@.new && mv $@.new $@
 
 ## Configuration file for the script.
index b0e295bbaf14301b7b5d1f9d78b56f1c2fd5160f..68a0d221344760e7f244fe172feccb2e00c9a21c 100644 (file)
@@ -37,7 +37,7 @@ EXTRA_DIST            += tripe-keys.in
 CLEANFILES             += tripe-keys
 
 tripe-keys: tripe-keys.in Makefile
-       $(confsubst) $(srcdir)/tripe-keys.in >$@.new $(SUBSTITUTIONS) && \
+       $(SUBST) $(srcdir)/tripe-keys.in >$@.new $(SUBSTITUTIONS) && \
                chmod +x $@.new && mv $@.new $@
 
 ## Manual pages.
index d3053b1bf77d553a28d4fef364852f15123c436b..128c35e3e16bffd77662b6025094fb3610263118 100644 (file)
@@ -37,7 +37,7 @@ EXTRA_DIST            += tripemon.in
 CLEANFILES             += tripemon
 
 tripemon: tripemon.in Makefile
-       $(confsubst) $(srcdir)/tripemon.in >$@.new $(SUBSTITUTIONS) && \
+       $(SUBST) $(srcdir)/tripemon.in >$@.new $(SUBSTITUTIONS) && \
                chmod +x $@.new && mv $@.new $@
 
 ## Manual page.
index c606474687f07eaee62db2a542d7a34dcf5816e5..3688a3f2c9e74fbc3f275f5e578f4dc0ff9a0c03 100644 (file)
@@ -36,8 +36,7 @@ CLEANFILES            += tripe-newpeers
 EXTRA_DIST             += tripe-newpeers.in
 
 tripe-newpeers: tripe-newpeers.in Makefile
-       $(confsubst) $(srcdir)/tripe-newpeers.in >$@.new \
-               $(SUBSTITUTIONS) && \
+       $(SUBST) $(srcdir)/tripe-newpeers.in >$@.new $(SUBSTITUTIONS) && \
                chmod +x $@.new && mv $@.new $@
 
 ## Manual pages.
index 464465608b61f1efd9389449883187ab81135344..03163bac6b3b2f355fa4b6212d6af288166d1d1b 100644 (file)
@@ -40,7 +40,7 @@ CLEANFILES            += tripe.py
 EXTRA_DIST             += tripe.py.in
 
 tripe.py: tripe.py.in Makefile
-       $(confsubst) $(srcdir)/tripe.py.in >$@.new $(SUBSTITUTIONS) && \
+       $(SUBST) $(srcdir)/tripe.py.in >$@.new $(SUBSTITUTIONS) && \
                mv $@.new $@
 
 ## Make sure the modules are compiled.
index ffe74d0bdf4155fb0ecb576471aa6a4dadd7d99a..121df6dfde97d10ce8e97d4d1b437247e0e4576f 100644 (file)
@@ -48,7 +48,7 @@ CLEANFILES            += connect.8
 EXTRA_DIST             += connect.8.in
 
 connect: connect.in Makefile
-       $(confsubst) $(srcdir)/connect.in >$@.new $(SUBSTITUTIONS) && \
+       $(SUBST) $(srcdir)/connect.in >$@.new $(SUBSTITUTIONS) && \
                chmod +x $@.new && mv $@.new $@
 
 ## Watch for peers arriving and disconnecting.
@@ -61,7 +61,7 @@ CLEANFILES            += watch.8
 EXTRA_DIST             += watch.8.in
 
 watch: watch.in Makefile
-       $(confsubst) $(srcdir)/watch.in >$@.new $(SUBSTITUTIONS) && \
+       $(SUBST) $(srcdir)/watch.in >$@.new $(SUBSTITUTIONS) && \
                chmod +x $@.new && mv $@.new $@
 
 ## Watch D-Bus to keep track of external connectivity.
@@ -74,7 +74,7 @@ CLEANFILES            += conntrack.8
 EXTRA_DIST             += conntrack.8.in
 
 conntrack: conntrack.in Makefile
-       $(confsubst) $(srcdir)/conntrack.in >$@.new $(SUBSTITUTIONS) && \
+       $(SUBST) $(srcdir)/conntrack.in >$@.new $(SUBSTITUTIONS) && \
                chmod +x $@.new && mv $@.new $@
 
 ## Bring up an interface.
@@ -87,7 +87,7 @@ CLEANFILES            += tripe-ifup.8
 EXTRA_DIST             += tripe-ifup.8.in
 
 tripe-ifup: tripe-ifup.in Makefile
-       $(confsubst) $(srcdir)/tripe-ifup.in >$@.new $(SUBSTITUTIONS) && \
+       $(SUBST) $(srcdir)/tripe-ifup.in >$@.new $(SUBSTITUTIONS) && \
                chmod +x $@.new && mv $@.new $@
 
 ###----- That's all, folks --------------------------------------------------
diff --git a/vars.am b/vars.am
index d4cdafbdc22e31c9a1fdb2422497802008f6fdac..5a9938d6bc82ff656f1cc2d3eb030f514e1cc330 100644 (file)
--- a/vars.am
+++ b/vars.am
@@ -67,6 +67,11 @@ SUBSTITUTIONS = \
                PACKAGE=$(PACKAGE) VERSION=$(VERSION) \
                PYTHON=$(PYTHON)
 
+V_SUBST = $(V_SUBST_$(V))
+V_SUBST_ = $(V_SUBST_$(AM_DEFAULT_VERBOSITY))
+V_SUBST_0 = @echo "  SUBST  $@";
+SUBST = $(V_SUBST)$(confsubst)
+
 ###--------------------------------------------------------------------------
 ### Manpage substitutions.
 
@@ -78,11 +83,17 @@ SUFFIXES            += .8 .8.in
 mandefs = $(top_srcdir)/common/defs.man
 makesummary = $(top_srcdir)/common/make-summary
 
+V_MAN = $(V_MAN_$(V))
+V_MAN_ = $(V_MAN_$(AM_DEFAULT_VERBOSITY))
+V_MAN_0 = @echo "  MAN    $@";
+
 .1.in.1 .5.in.5 .7.in.7 .8.in.8:
-       sed '/^\.$$/ d; /^\.\\"/ d' $(mandefs) >$@.defs
-       sed -e '/@@@PRE@@@/ {' -e 'r$@.defs' -e 'd' -e '}' $< >$@.merge
-       $(confsubst) $@.merge >$@.subst $(SUBSTITUTIONS)
-       awk -f $(makesummary) $@.subst >$@.new
-       rm -f $@.defs $@.merge $@.subst && mv $@.new $@
+       $(V_MAN)
+       $(AM_V_at)sed '/^\.$$/ d; /^\.\\"/ d' $(mandefs) >$@.defs
+       $(AM_V_at)sed -e '/@@@PRE@@@/ {' -e 'r$@.defs' -e 'd' -e '}' \
+               $< >$@.merge
+       $(AM_V_at)$(confsubst) $@.merge >$@.subst $(SUBSTITUTIONS)
+       $(AM_V_at)awk -f $(makesummary) $@.subst >$@.new
+       $(AM_V_at)rm -f $@.defs $@.merge $@.subst && mv $@.new $@
 
 ###----- That's all, folks --------------------------------------------------