This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
RE: How to force a compilation ?
- From: Bernard Dautrevaux <Dautrevaux at microprocess dot com>
- To: 'BERTRAND Joël' <rpl2 at free dot fr>, automake at gnu dot org
- Date: Thu, 14 Feb 2002 13:46:26 +0100
- Subject: RE: How to force a compilation ?
> -----Original Message-----
> From: BERTRAND Joël [mailto:rpl2@free.fr]
> Sent: Thursday, February 14, 2002 12:51 PM
> To: automake@gnu.org
> Subject: Re: How to force a compilation ?
>
>
> Alexandre Duret-Lutz wrote:
> >>>>"bj" == BERTRAND Joël <joel.k.bertrand@free.fr> writes:
> >>>>
> >
> > [...]
> >
> > bj> It works fine. But, when I run "make", a file named rpl.c must
> > bj> be recompiled. How can I do that ?
> >
> > What do you mean?
> >
> > If rpl.c must be compiled as rpl.o, just list rpl.c in the
> > relevant *_SOURCES variable of your Makefile.am.
>
> rpl.o is built from rpl.c and rpl.h. But I would recompile this file
> when "make" is done (even if rpl.o is up to date, because the gcc
> command line contains "-Ddate=..." which changes.).
>
Perhaps something on the line of:
rpl.c: always
always:
addedd to your makefile?
HTH
Bernard
--------------------------------------------
Bernard Dautrevaux
Microprocess Ingenierie
97 bis, rue de Colombes
92400 COURBEVOIE
FRANCE
Tel: +33 (0) 1 47 68 80 80
Fax: +33 (0) 1 47 88 97 85
e-mail: dautrevaux@microprocess.com
b.dautrevaux@usa.net
--------------------------------------------