all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Mathias Megyei <mathias@mnet-mail.de>
To: Alan Mackenzie <acm@muc.de>
Cc: bug-cc-mode@gnu.org, emacs-devel@gnu.org,
	Richard Stallman <rms@gnu.org>,
	Alan Mackenzie <alan.mackenzie_jwa@nxp.com>
Subject: Re: Compilation order.  Tentative patch.
Date: Sat, 6 Oct 2007 07:38:18 +0200	[thread overview]
Message-ID: <18183.8010.305303.261703@gargle.gargle.HOWL> (raw)
In-Reply-To: <20071005215443.GA27929@muc.de>

Hi Alan,

Alan Mackenzie writes:
 > Suggestions for increasing the elegance would be welcome.
 > 
 > 
 > 2007-10-05  Alan Mackenzie  <acm@muc.de>
 > 
 > 	* Makefile.in: Rigorously specify the dependencies between the CC
 > 	Mode files.elc.
 > 	(CC-MODE): New target.
 > 
 > 
 > Index: Makefile.in
 > ===================================================================
 > RCS file: /cvsroot/emacs/emacs/lisp/Makefile.in,v
 > retrieving revision 1.85.2.3
 > diff -c -r1.85.2.3 Makefile.in
 > *** Makefile.in	19 Aug 2007 00:24:55 -0000	1.85.2.3
 > --- Makefile.in	5 Oct 2007 21:12:56 -0000
 > ***************
 > *** 213,225 ****
 >   	$(emacs) --eval "(batch-byte-recompile-directory 0)" $(lisp)
 >   
 >   # CC Mode uses a compile time macro system which causes a compile time
 > ! # dependency in cc-mode.elc on the macros in cc-langs.el and the
 > ! # version string in cc-defs.el.
 > ! $(lisp)/progmodes/cc-mode.elc: \
 > ! 	$(lisp)/progmodes/cc-mode.el \
 > ! 	$(lisp)/progmodes/cc-langs.el \
 > ! 	$(lisp)/progmodes/cc-defs.el
 > ! 	$(emacs) -f batch-byte-compile $(lisp)/progmodes/cc-mode.el
 >   
 >   # Update MH-E internal autoloads. These are not to be confused with
 >   # the autoloads for the MH-E entry points, which are already in
 > --- 213,246 ----
 >   	$(emacs) --eval "(batch-byte-recompile-directory 0)" $(lisp)
 >   
 >   # CC Mode uses a compile time macro system which causes a compile time
 > ! # dependency in cc-mode.elc, cc-engine.elc, and cc-fonts.elc on the "language
 > ! # variables" in cc-langs.el.  A(lmost) all CC files depend on the macros in
 > ! # cc-defs.elc and the bytecomp stuff in cc-bytecomp.el.
 > ! pr=$(lisp)/progmodes
 > ! .PHONY: CC-MODE
 > ! CC-MODE: $(pr)/cc-align.elc $(pr)/cc-awk.elc $(pr)/cc-bytecomp.elc $(pr)/cc-cmds.elc $(pr)/cc-compat.elc $(pr)/cc-defs.elc $(pr)/cc-engine.elc $(pr)/cc-fonts.elc $(pr)/cc-langs.elc $(pr)/cc-mode.elc $(pr)/cc-menus.elc $(pr)/cc-styles.elc $(pr)/cc-subword.elc $(pr)/cc-vars.elc

 You can omit to list the files cc-bytecomp.elc, cc-defs.elc,
 cc-langs.el, because they appear in the dependency lists of the
 rules below.

 > ! 
 > ! # "Top level" CC Mode files:
 > ! $(pr)/cc-align.elc \
 > ! $(pr)/cc-awk.elc \
 > ! $(pr)/cc-cmds.elc \
 > ! $(pr)/cc-compat.elc \
 > ! $(pr)/cc-menus.elc \
 > ! $(pr)/cc-styles.elc \
 > ! $(pr)/cc-subword.elc \
 > ! $(pr)/cc-vars.elc: \
 > !     $(pr)/cc-defs.elc $(pr)/cc-bytecomp.elc

Since $(pr)/cc-defs.elc already depends on $(pr)/cc-bytecomp.elc
there's no need to add the latter to this list.

 > ! 
 > ! # CC Mode files which defvar, initialise, or use the "language variables":
 > ! $(pr)/cc-mode.elc \
 > ! $(pr)/cc-engine.elc \
 > ! $(pr)/cc-fonts.elc: \
 > !      $(pr)/cc-langs.elc $(pr)/cc-defs.elc $(pr)/cc-bytecomp.elc

the same here, $(pr)/cc-langs.elc depends on both
cc-defs.elc and cc-bytecomp.elc.

 > ! 
 > ! # CC Mode file which defines the language variables and their values:
 > ! $(pr)/cc-langs.elc: $(pr)/cc-defs.elc $(pr)/cc-bytecomp.elc

the same here

Mathias

  reply	other threads:[~2007-10-06  5:38 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-29  9:57 Compilation order. Help with makefiles, please! Alan Mackenzie_JWA
2007-08-30  7:15 ` Richard Stallman
2007-08-30 19:45   ` Stefan Monnier
2007-08-31  7:34     ` Richard Stallman
2007-08-31  8:57       ` Alan Mackenzie_JWA
2007-08-31 14:16         ` Stefan Monnier
2007-09-01  4:06         ` Richard Stallman
2007-10-05 21:54   ` Compilation order. Tentative patch Alan Mackenzie
2007-10-06  5:38     ` Mathias Megyei [this message]
2007-10-07  0:31     ` Richard Stallman

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=18183.8010.305303.261703@gargle.gargle.HOWL \
    --to=mathias@mnet-mail.de \
    --cc=acm@muc.de \
    --cc=alan.mackenzie_jwa@nxp.com \
    --cc=bug-cc-mode@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=rms@gnu.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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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.