From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: Compilation order. Help with makefiles, please! Date: Sun, 26 Aug 2007 10:55:41 +0000 Message-ID: <20070826105541.GB3996@muc.de> References: <20070826093808.GA3996@muc.de> <87tzqmpp35.fsf@cadilhac.name> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1188125601 29292 80.91.229.12 (26 Aug 2007 10:53:21 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 26 Aug 2007 10:53:21 +0000 (UTC) Cc: bug-cc-mode@gnu.org, Richard Stallman , emacs-devel@gnu.org To: =?iso-8859-1?Q?Micha=EBl?= Cadilhac Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Aug 26 12:53:19 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IPFk7-0006eI-Dn for ged-emacs-devel@m.gmane.org; Sun, 26 Aug 2007 12:53:19 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IPFk6-0004pC-84 for ged-emacs-devel@m.gmane.org; Sun, 26 Aug 2007 06:53:18 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IPFk2-0004o0-0x for emacs-devel@gnu.org; Sun, 26 Aug 2007 06:53:14 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IPFk0-0004mD-PR for emacs-devel@gnu.org; Sun, 26 Aug 2007 06:53:13 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IPFk0-0004m1-EE for emacs-devel@gnu.org; Sun, 26 Aug 2007 06:53:12 -0400 Original-Received: from colin.muc.de ([193.149.48.1] helo=mail.muc.de) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IPFjz-0005wH-OY for emacs-devel@gnu.org; Sun, 26 Aug 2007 06:53:12 -0400 Original-Received: (qmail 58922 invoked by uid 3782); 26 Aug 2007 10:53:07 -0000 Original-Received: from acm.muc.de (p57B1EB99.dip.t-dialin.net [87.177.235.153]) by colin2.muc.de (tmda-ofmipd) with ESMTP; Sun, 26 Aug 2007 12:53:03 +0200 Original-Received: (qmail 5676 invoked by uid 1000); 26 Aug 2007 10:55:41 -0000 Content-Disposition: inline In-Reply-To: <87tzqmpp35.fsf@cadilhac.name> User-Agent: Mutt/1.5.9i X-Delivery-Agent: TMDA/1.1.5 (Fettercairn) X-Primary-Address: acm@muc.de X-Detected-Kernel: FreeBSD 4.6-4.9 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:77205 Archived-At: Hi, Michaël! On Sun, Aug 26, 2007 at 12:28:14PM +0200, Michaël Cadilhac wrote: > Alan Mackenzie writes: > > If I delete cc-langs.elc, then do: > > % make -nf CC-Makefile.mk progmodes/cc-engine.elc > > , make reports: > > make: `progmodes/cc-engine.elc' is up to date. > IIRC, this is a good example of the pickiness of make(1). Try: > $ make -nf CC-Makefile.mk $(pwd)/progmodes/cc-engine.elc > (Indeed, you put a $(lisp)/ before each path...) Ah! You mean, make merely does a literal text comparison of the "filename" one gives it ("progmodes/cc-engine.elc") with the target ($(lisp)/progmodes/cc-engine.elc, which expands to "/home/acm/emacs/emacs-22/lisp/progmodes/cc-engine.elc"). They don't match. What's the best way of handling this? Anyway, when I do % make -nf CC-Makefile.mk /home/acm/emacs/emacs-22/lisp/progmodes/cc-engine.elc , make replies with this: EMACSLOADPATH=/home/acm/emacs/emacs-22/lisp ../src/emacs -batch --no-site-file --multibyte -f batch-byte-compile /home/acm/emacs/emacs-22/lisp/progmodes/cc-defs.el EMACSLOADPATH=/home/acm/emacs/emacs-22/lisp ../src/emacs -batch --no-site-file --multibyte -f batch-byte-compile /home/acm/emacs/emacs-22/lisp/progmodes/cc-langs.el EMACSLOADPATH=/home/acm/emacs/emacs-22/lisp ../src/emacs -batch --no-site-file --multibyte -f batch-byte-compile /home/acm/emacs/emacs-22/lisp/progmodes/cc-engine.el , which is what I want. Many thanks! > Michaël `Micha' Cadilhac -- Alan Mackenzie (Ittersbach, Germany).