aboutsummaryrefslogtreecommitdiffhomepage
path: root/Makefile.local
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 /Makefile.local
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 'Makefile.local')
-rw-r--r--Makefile.local4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile.local b/Makefile.local
index 3c996240..5fd5d4f4 100644
--- a/Makefile.local
+++ b/Makefile.local
@@ -20,10 +20,10 @@ notmuch_client_srcs = \
notmuch_client_modules = $(notmuch_client_srcs:.c=.o)
notmuch: $(notmuch_client_modules) lib/notmuch.a
- $(CXX) $^ $(LDFLAGS) -o $@
+ $(call quiet,CXX) $^ $(LDFLAGS) -o $@
notmuch.1.gz: notmuch.1
- gzip --stdout notmuch.1 > notmuch.1.gz
+ $(call quiet,GZIP) --stdout $^ > $@
install: all notmuch.1.gz
for d in $(DESTDIR)$(prefix)/bin/ $(DESTDIR)$(prefix)/share/man/man1 \