[ On , May 28, 2000 at 02:36:59 (-0300), Alexandre Oliva wrote: ]
> Subject: Re: gmake vs. ucb make and SUBDIRS
>
> Which version of automake are you using?  The latest release will only
> work with non-GNU makes after `make dist' (or `automake -i').  The CVS
> version is supposed to work with any make, but it was reported to me
> that it fails in BSD make because it doesn't support `include'.
> Configuring with --disable-dependency-tracking should take care of
> that, but we should arrange for automake to detect this situation and
> disable dependency tracking automatically.

It's not very difficult to bootstrap any "make" into including more than
one makefile using '-f'.  That way automake wouldn't have to generate
make-specific makefiles.

On the other hand if you are going to detect the make type with automake
and build custom makefiles for it then it's trivial to just use the
correct "include" syntax for the target make.  For BSD make that's

        .include "file"         # makefile's directory and then any -I
                                # directories searched first before the
                                # system directory
or
        .include <file>         # expected to be in system directory

and to ignore errors opening the files use ".-include" or ".sinclude".

generated dependencies should of course be included with:

        .sinclude ".depend"

-- 
                                                        Greg A. Woods

+1 416 218-0098      VE3TCP      <[EMAIL PROTECTED]>      <robohack!woods>
Planix, Inc. <[EMAIL PROTECTED]>; Secrets of the Weird <[EMAIL PROTECTED]>

Reply via email to