gnu-misc-discuss
[Top][All Lists]
Advanced

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

Re: makefile question: always recompile a file


From: André Gillibert
Subject: Re: makefile question: always recompile a file
Date: Wed, 26 Aug 2009 23:19:14 +0200

Jim <james.ro123@yahoo.com> 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


reply via email to

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