unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [PATCH 1/1] build: delete the default .SUFFIXES
@ 2014-01-25 12:33 Tomi Ollila
  2014-01-25 17:20 ` David Bremner
  2014-01-26 13:58 ` David Bremner
  0 siblings, 2 replies; 3+ messages in thread
From: Tomi Ollila @ 2014-01-25 12:33 UTC (permalink / raw)
  To: notmuch; +Cc: tomi.ollila

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

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/1] build: delete the default .SUFFIXES
  2014-01-25 12:33 [PATCH 1/1] build: delete the default .SUFFIXES Tomi Ollila
@ 2014-01-25 17:20 ` David Bremner
  2014-01-26 13:58 ` David Bremner
  1 sibling, 0 replies; 3+ messages in thread
From: David Bremner @ 2014-01-25 17:20 UTC (permalink / raw)
  To: Tomi Ollila, notmuch; +Cc: tomi.ollila

Tomi Ollila <tomi.ollila@iki.fi> writes:

> 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.

LGTM.

d

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/1] build: delete the default .SUFFIXES
  2014-01-25 12:33 [PATCH 1/1] build: delete the default .SUFFIXES Tomi Ollila
  2014-01-25 17:20 ` David Bremner
@ 2014-01-26 13:58 ` David Bremner
  1 sibling, 0 replies; 3+ messages in thread
From: David Bremner @ 2014-01-26 13:58 UTC (permalink / raw)
  To: Tomi Ollila, notmuch; +Cc: tomi.ollila

Tomi Ollila <tomi.ollila@iki.fi> writes:

> 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.

pushed.

d

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-01-26 13:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-25 12:33 [PATCH 1/1] build: delete the default .SUFFIXES Tomi Ollila
2014-01-25 17:20 ` David Bremner
2014-01-26 13:58 ` David Bremner

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).