Lars J. Aas writes:
> On Fri, Mar 30, 2001 at 11:10:32AM +0100, Lars Hecking wrote:
> : How do I define a dependency on a header file in a different directory, eg.
> : the parent dir? I tried
> :
> : BUILT_SOURCES = ../header.h
>
> Try something like this:
>
> In ../Makefile.am:
>
> BUILT_SOURCES = header.h
> # build $(BUILT_SOURCES) before entering subdirs
> Makefile: $(BUILT_SOURCES)
Already in place.
> In ./Makefile.am:
>
> ../header.h: $(srcdir)/../header.h.in
> @( cd ..; $(MAKE) header.h )
This doesn't help either.
As I explained in the other email, BUILT_SOURCES in the top level Makefile.am
declares two header files, but with non-GNU make, only the first one is
ever built before descending into the subdirs.