[PATCH 1/1] build: delete the default .SUFFIXES

Tomi Ollila tomi.ollila at iki.fi
Sat Jan 25 04:33:55 PST 2014


All implicit rules in notmuch Makefiles are "pattern rules"; Deleting the
default suffixes (to support obsolete, old-fashioned "suffix rules") from
make reduces the output of 'make -d' by 40 to 90 percent, helping e.g.
debugging make problems.
---

output size comparisons:

full-build: script -c 'make -d'

 3159626 Jan 25 14:21 typescript-with-suffixes
  430453 Jan 25 14:22 typescript-sans-suffixes

build with nothing to do:

 3054310 Jan 25 12:10 typescript-with-suffixes
 5435585 Jan 25 12:07 typescript-sans-suffixes

 Makefile.local | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Makefile.local b/Makefile.local
index c85e09c..174506c 100644
--- a/Makefile.local
+++ b/Makefile.local
@@ -325,3 +325,5 @@ DISTCLEAN := $(DISTCLEAN) .first-build-message Makefile.config
 DEPS := $(SRCS:%.c=.deps/%.d)
 DEPS := $(DEPS:%.cc=.deps/%.d)
 -include $(DEPS)
+
+.SUFFIXES: # Delete the default suffixes. Old-Fashioned Suffix Rules not used.
-- 
1.8.0



More information about the notmuch mailing list