[Top][All Lists]

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

makefile question: always recompile a file

From: Jim
Subject: makefile question: always recompile a file
Date: Wed, 26 Aug 2009 14:02:39 -0700 (PDT)
User-agent: G2/1.0


I'm using a make program similar to gnu make.  I'd like to always
recompile a file whenever ANY file is compiled (or assembled).
Preferably (but not absolutely necessary), I'd like the file to
recompile if the linker runs as well, but this sounds really tough.
In case you're wondering, this file contains a global array that has
time and date stamp information in it so we can tell when the project
was last built.

Some engineers don't like a simple "delete the object file always when
make runs" approach because if you inadvertently run make a second
time, you get a recompile even if no sources changed.

Any ideas on how to do this?

Thanks much,


reply via email to

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