Re: makefile question: always recompile a file

AndrĂ© Gillibert <[email protected]> Wed, 26 Aug 2009 23:19:14 +0200
Newsgroups gmane.comp.gnu.utils
Organization les newsgroups par Orange
Message-ID <20090826231914.5b500400__22189.887162722$1251333658$gmane$org@fixlaptop.gillibert.homelinux.net>
Jim <[email protected]> wrote:
> Hi,
> 
> 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.

So, it means that any object or executable file depends on this target.
Assuming you've macros OBJS and EXES containing a list of object files and executable files, this should look like:

$(OBJS) $(EXES): your_compiled_file
your_compiled_file:
	your command line

-- 
André Gillibert