Re: Force a file to be compiled always

2010-11-10 Thread Steffen Dettmer
On Nov 4, 2010, Benjamin Bihler wrote: > As to the third suggestion: I use the __DATE__ and __TIME__ > macros in my code as a kind of version information. Therefore > the compilation result differs with every compilation, although > my source file does not change. Is there yet a better method to >

Re: Force a file to be compiled always

2010-11-07 Thread Benjamin Bihler
Hi Ralf, excuse me, I have sent this mail twice but in the mailing list the body seems to be empty. I will try it a last time with another method... >> your first suggestion (with the phony target) works great. The second one >> does not force compilation here (but that doesn't matter anymore si

Re: Force a file to be compiled always

2010-11-07 Thread Benjamin Bihler
Hi Ralf, excuse me, I have sent this mail twice but in the mailing list the body seems to be empty. I will try it a last time with another method... >> your first suggestion (with the phony target) works great. The second one >> does not force compilation here (but that doesn't matter anymore si

Re: Force a file to be compiled always

2010-11-05 Thread Benjamin Bihler

Re: Force a file to be compiled always

2010-11-05 Thread Benjamin Bihler

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

Re: Force a file to be compiled always

2010-11-03 Thread Ralf Wildenhues
Hi Benjamin, * Benjamin Bihler wrote on Wed, Nov 03, 2010 at 11:00:35AM CET: > almost ten years ago there was a question in this mailing list how to force > a source file to be compiled always. > > http://lists.gnu.org/archive/html/automake/2002-02/msg00099.html > > Unfortunately the solutions m

Force a file to be compiled always

2010-11-03 Thread Benjamin Bihler
Hello, almost ten years ago there was a question in this mailing list how to force a source file to be compiled always. http://lists.gnu.org/archive/html/automake/2002-02/msg00099.html Unfortunately the solutions mentioned there seem not to work with me. My Makefile.am looks like this: ---

Force a file to be compiled always

2010-11-03 Thread Benjamin Bihler
Hello, almost ten years ago there was a question in this mailing list how to force a source file to be compiled always. http://lists.gnu.org/archive/html/automake/2002-02/msg00099.html Unfortunately the solutions mentioned there seem not to work with me. My Makefile.am looks like this: ---