Le 27 juin 2012 à 22:15, Bob Friesenhahn a écrit : > On Wed, 27 Jun 2012, Dave Hart wrote: >> >> Thanks. That approach should work for a recursive setup if each >> directory with Makefile.am also has the MAKEFLAGS-altering >> GNUmakefile. From my perspecitve, while it would be nicer if Automake >> handled it for me, this solution appeals. I realize converting to >> nonrecursive make would yield correctness and performance wins, but so >> far I have been put off by the loss of ability to build only a >> subtree. > > It is quite possible to build a subtree of a non-recursive project but you do > need to know how to specify the fully-qualified path to the target which > should be built. If there are just a few common targets, these can be added > as shortcut targets in the Makefile.
Yes, I concur, this is very handy. The real issue with non-recursive Makefiles is the absence of scoping concept, so one can no longer have different AM_CPPFLAGS easily. But at least with GNU Make we can use target/pattern-specific variables, so it might be easier to emulate.
