|
From: | Benoit Sigoure |
Subject: | Re: Overwriting targets. |
Date: | Mon, 23 Apr 2007 16:06:44 +0200 |
User-agent: | Internet Messaging Program (IMP) H3 (4.0.2) |
Quoting Ralf Wildenhues <address@hidden>:
Hello Brendon, * Brendon Costa wrote on Mon, Apr 23, 2007 at 03:34:21AM CEST: [...]When i do a make distclean i want to perform the distclean as normal for all directories EXCEPT when descending into $builddir/patched When distclean is recursively invoked in the patched subdir, i want to perform a rm -r gcc-4.0.1 doxygen-1.5.1Then, with current Automake, you cannot put these dirs in SUBDIRS nor DIST_SUBDIRS. So I guess you need to write proxy *-local rules for all the operations you want to support: <http://sources.redhat.com/automake/automake.html#Third_002dParty-Makefiles> For example: all-local: cd gcc-4.0.1 && $(MAKE) all
BTW, this simulates the case when `gcc-4.0.1' is after `.' in SUBDIRS. This won't work if `all' needs to be made in the sub-directory before in `.' (which is often the case). I don't have a good solution when the sub-directory needs to be invoked recursively before `.', does anyone have an idea? (better than overriding the recursion mechanism with a hand-crafted one) -- Benoit Sigoure aka Tsuna EPITA Research and Development Laboratory
[Prev in Thread] | Current Thread | [Next in Thread] |