help-make
[Top][All Lists]
Advanced

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

Re: How to automatically update a automatically generated dependence fil


From: Stephan Beal
Subject: Re: How to automatically update a automatically generated dependence file?
Date: Fri, 24 Oct 2008 22:19:41 +0200

On Fri, Oct 24, 2008 at 9:29 PM, Peng Yu <address@hidden> wrote:
> The real problem is that I may change the filename of print.hpp (in a
> refactoring process) after the dependency file was written. To
> demonstrate an equivalent problem, I modify the dependency file as it
> is easier than changing the code. Does the technique on
> http://make.paulandlesley.org/autodep.html handle this situation?

Yes: see the section titled "Advanced Auto-Dependencies"

That approach is also documented, though using a different
implementation, in "Managing Projects with GNU Make". Here's a link:

http://wanderinghorse.net/computing/make/book/ManagingProjectsWithGNUMake-3.1.3.pdf

(1.2MB)

See section 10.3.1 (page 114).


-- 
----- stephan beal
http://wanderinghorse.net/home/stephan/




reply via email to

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