all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alan Mackenzie <acm@muc.de>
To: "Michaël Cadilhac" <michael@cadilhac.name>
Cc: bug-cc-mode@gnu.org, Richard Stallman <rms@gnu.org>, emacs-devel@gnu.org
Subject: Re: Compilation order.  Help with makefiles, please!
Date: Sun, 26 Aug 2007 10:55:41 +0000	[thread overview]
Message-ID: <20070826105541.GB3996@muc.de> (raw)
In-Reply-To: <87tzqmpp35.fsf@cadilhac.name>

Hi, Michaël!

On Sun, Aug 26, 2007 at 12:28:14PM +0200, Michaël Cadilhac wrote:
> Alan Mackenzie <acm@muc.de> 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).

  reply	other threads:[~2007-08-26 10:55 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <E1IMYuS-00059J-B8@fencepost.gnu.org>
2007-08-26  9:38 ` Compilation order. Help with makefiles, please! Alan Mackenzie
2007-08-26 10:28   ` Michaël Cadilhac
2007-08-26 10:55     ` Alan Mackenzie [this message]
2007-08-26 22:46   ` Richard Stallman
2007-08-29  9:57 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

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=20070826105541.GB3996@muc.de \
    --to=acm@muc.de \
    --cc=bug-cc-mode@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=michael@cadilhac.name \
    --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.