This is the mail archive of the automake@gnu.org mailing list for the automake project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.).

> If rpl.c must be generated from some other files, list it in a
> *_SOURCES variable too (or maybe a nodist_*_SOURCES variable)
> and add a custom rule to build it.
> 


	Regards,

	JKB



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]