emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Compilation order. Help with makefiles, please!


From: Alan Mackenzie
Subject: Re: Compilation order. Help with makefiles, please!
Date: Sun, 26 Aug 2007 10:55:41 +0000
User-agent: Mutt/1.5.9i

Hi, Michaël!

On Sun, Aug 26, 2007 at 12:28:14PM +0200, Michaël Cadilhac wrote:
> Alan Mackenzie <address@hidden> 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 via email to

[Prev in Thread] Current Thread [Next in Thread]