From 530df68258ea0fbdceafd6e4a0f51889c6ee86d2 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sat, 21 Nov 2009 20:32:20 +0000 Subject: 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 Signed-off-by: Carl Worth Cc: Mikhail Gusarov [ickle: Rebased, and duplicate command string eliminated.] [ickle: Fixed verbose bug pointed out by Mikhail] --- Makefile.local | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Makefile.local') 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 \ -- cgit v1.2.3