automake
[Top][All Lists]
Advanced

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

Re: How to force a compilation ?


From: BERTRAND Joël
Subject: Re: How to force a compilation ?
Date: Thu, 14 Feb 2002 12:51:00 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.8) Gecko/20020205

Alexandre Duret-Lutz wrote:
"bj" == BERTRAND Joël <address@hidden> 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




reply via email to

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