Re: Force a file to be compiled always

2010-11-04 Thread Ralf Wildenhues
Hi Benjamin, * Benjamin Bihler wrote on Thu, Nov 04, 2010 at 09:33:06AM CET: > your first suggestion (with the phony target) works great. The second one > does not force compilation here (but that doesn't matter anymore since I > use the phony target now). Hmm, do you have a file named FORCE in s

Re: [PATCH] {maint} Document in detail some limitations of aclocal. (was: Re: Strangeness with m4_include and aclocal.)

2010-11-04 Thread Nick Bowler
On 2010-11-04 20:47 +0100, Stefano Lattarini wrote: > On Thursday 28 October 2010, Stefano Lattarini wrote: > > On Wednesday 27 October 2010, Nick Bowler wrote: > > > On 2010-10-23 15:23 +0200, Stefano Lattarini wrote: > > > > So I think your first problem is "just" an aclocal limitation we should

[PATCH] {maint} Document in detail some limitations of aclocal. (was: Re: Strangeness with m4_include and aclocal.)

2010-11-04 Thread Stefano Lattarini
On Thursday 28 October 2010, Stefano Lattarini wrote: > On Wednesday 27 October 2010, Nick Bowler wrote: > > On 2010-10-23 15:23 +0200, Stefano Lattarini wrote: > > > So I think your first problem is "just" an aclocal limitation we should > > > resign to live with. But I also think that such a lim

Re: Force a file to be compiled always

2010-11-04 Thread Dave Hart
On Thu, Nov 4, 2010 at 13:46 UTC, Valentin David wrote: > You probably want to have one object that has symbols for the date and > the time, and this object to be depending on other objects. The NTP reference implementation does something along these lines. Every time any consituent libraries or

Re: Force a file to be compiled always

2010-11-04 Thread Valentin David
You probably want to have one object that has symbols for the date and the time, and this object to be depending on other objects. I am not an expert of Automake. But my solution seems to work. And this is: noinst_LTLIBRARIES=libfoo.la lib_LTLIBRARIES=liball.la libfoo_la_SOURCES=foo.c bar.c libal

Re: Force a file to be compiled always

2010-11-04 Thread Benjamin Bihler
Hi Ralf, your first suggestion (with the phony target) works great. The second one does not force compilation here (but that doesn't matter anymore since I use the phony target now). As to the third suggestion: I use the __DATE__ and __TIME__ macros in my code as a kind of version information.

Re: Force a file to be compiled always

2010-11-04 Thread Benjamin Bihler
Hi Ralf, your first suggestion (with the phony target) works great. The second one does not force compilation here (but that doesn't matter anymore since I use the phony target now). As to the third suggestion: I use the __DATE__ and __TIME__ macros in my code as a kind of version information.