On 22 May 2011 14:34, Ralf Wildenhues <ralf.wildenh...@gmx.de> wrote: > > Why should this rule not be accepted by automake? Just turn off the > warning about non-portable make constructs.
I think that would be a mistake for two reasons: first, the rule I'm proposing is a maintainer rule, and it's better to make it available to all projects without configuration via gnulib's maintainer-makefile module; and secondly, it's not a good idea to add non-portable constructs even for maintainer rules, because then one loses the checks on all rules, including build rules. Until the GNU build system abandons portable make (I wish it would!), we should be sticking to portable makefiles, which after all do have real advantages. > http://www.emacswiki.org/emacs/FlyMake has suggestions. Thanks for that pointer; it seems essentially to be a more sophisticated version of my rule, but it still solves the problem I mention by patching every makefile, which is essentially a manual and special-case solution. This looks like a case in which linking/copying the GNUMakefile into every directory in SUBDIRS would be handy, to make targets available there. I imagine there must be other use cases for other maintainer targets in sub-directories... -- http://rrt.sc3d.org