On Fri, Oct 24, 2008 at 9:29 PM, Peng Yu <[EMAIL PROTECTED]> 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/ _______________________________________________ Help-make mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-make
