Re: makefile question: always recompile a file

Rainer Weikusat <[email protected]> Thu, 27 Aug 2009 12:46:37 +0200
Newsgroups gmane.comp.gnu.utils
Message-ID <873a7d5yb6.fsf__37471.7933395461$1251437601$gmane$org@fever.mssgmbh.com>
Jim <[email protected]> writes:
> 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.

This is actually really simple: Use a wrapper-script which recompiles
the file and then invokes either the compiler or the linker. Should
you be using gcc, one script should be sufficient.