All of lore.kernel.org
 help / color / mirror / Atom feed
From: Matthew Wilcox <matthew@wil.cx>
To: Sam Ravnborg <sam@ravnborg.org>,
	Kai Germaschewski <kai@germaschewski.name>
Cc: linux-kernel@vger.kernel.org, dholland@eecs.harvard.edu
Subject: [PATCH] Makefiles are not built using a Fortran compiler
Date: Tue, 8 Feb 2005 03:02:28 +0000	[thread overview]
Message-ID: <20050208030228.GE20386@parcelfarce.linux.theplanet.co.uk> (raw)


David Holland pointed out that Make has a lot of implicit suffix rules
built in and you can disable them by setting ".SUFFIXES:".  As an
example, checking the debugging information shows we no longer try to
compile anything from a '.f' suffix.  This turns out to be good for a 15%
speedup on a build with nothing to do; down from 29.1 seconds to 24.7
seconds on my K6.

Signed-off-by: Matthew Wilcox <matthew@wil.cx>

Index: Makefile
===================================================================
RCS file: /var/cvs/linux-2.6/Makefile,v
retrieving revision 1.338
diff -u -p -r1.338 Makefile
--- Makefile	6 Feb 2005 06:43:49 -0000	1.338
+++ Makefile	8 Feb 2005 02:39:28 -0000
@@ -4,6 +4,8 @@ SUBLEVEL = 11
 EXTRAVERSION =-rc3-pa3
 NAME=Woozy Numbat
 
+.SUFFIXES:
+
 # *DOCUMENTATION*
 # To see a list of typical targets execute "make help"
 # More info can be located in ./README
Index: scripts/Makefile.build
===================================================================
RCS file: /var/cvs/linux-2.6/scripts/Makefile.build,v
retrieving revision 1.9
diff -u -p -r1.9 Makefile.build
--- scripts/Makefile.build	12 Jan 2005 20:18:19 -0000	1.9
+++ scripts/Makefile.build	8 Feb 2005 02:39:28 -0000
@@ -4,6 +4,8 @@
 
 src := $(obj)
 
+.SUFFIXES:
+
 .PHONY: __build
 __build:
 

-- 
"Next the statesmen will invent cheap lies, putting the blame upon 
the nation that is attacked, and every man will be glad of those
conscience-soothing falsities, and will diligently study them, and refuse
to examine any refutations of them; and thus he will by and by convince 
himself that the war is just, and will thank God for the better sleep 
he enjoys after this process of grotesque self-deception." -- Mark Twain

             reply	other threads:[~2005-02-08  3:02 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-08  3:02 Matthew Wilcox [this message]
2005-02-08 12:23 ` [PATCH] Makefiles are not built using a Fortran compiler Roman Zippel
2005-02-08 15:44   ` Matthew Wilcox
2005-02-08 17:04     ` Ryan Anderson
2005-02-08 19:20     ` Sam Ravnborg
2005-02-08 19:26       ` Kai Germaschewski
2005-02-09  5:04         ` Sam Ravnborg
2005-02-08 21:27       ` Matthew Wilcox
2005-02-08 21:23     ` J.A. Magallon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050208030228.GE20386@parcelfarce.linux.theplanet.co.uk \
    --to=matthew@wil.cx \
    --cc=dholland@eecs.harvard.edu \
    --cc=kai@germaschewski.name \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sam@ravnborg.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.