aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib
diff options
context:
space:
mode:
authorGravatar Chris Wilson <chris@chris-wilson.co.uk>2009-11-21 20:32:20 +0000
committerGravatar Carl Worth <cworth@cworth.org>2009-11-22 04:29:29 +0100
commit530df68258ea0fbdceafd6e4a0f51889c6ee86d2 (patch)
tree108e8fec03c6e3fe05ec952c36c1b32af5e6b9b0 /lib
parent5d56e931b99d575dbb0b936d24aae5e9903861ad (diff)
Makefile: Magic silent rules.
Use the facilities of GNU make to create a magic function that will on the first invocation print a description of how to enable verbose compile lines and then print the quiet rule. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Carl Worth <cworth@cworth.org> Cc: Mikhail Gusarov <dottedmag@dottedmag.net> [ickle: Rebased, and duplicate command string eliminated.] [ickle: Fixed verbose bug pointed out by Mikhail]
Diffstat (limited to 'lib')
-rw-r--r--lib/Makefile.local2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Makefile.local b/lib/Makefile.local
index 79f7b0b7..a7562c9b 100644
--- a/lib/Makefile.local
+++ b/lib/Makefile.local
@@ -18,7 +18,7 @@ libnotmuch_cxx_srcs = \
libnotmuch_modules = $(libnotmuch_c_srcs:.c=.o) $(libnotmuch_cxx_srcs:.cc=.o)
$(dir)/notmuch.a: $(libnotmuch_modules)
- $(AR) rcs $@ $^
+ $(call quiet,AR) rcs $@ $^
SRCS := $(SRCS) $(libnotmuch_c_srcs) $(libnotmuch_cxx_srcs)
CLEAN := $(CLEAN) $(libnotmuch_modules) $(dir)/notmuch.a