This is the mail archive of the automake@gnu.org mailing list for the automake project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Built header in different dir?


Alexandre Oliva writes:
> On Mar 30, 2001, Lars Hecking <lhecking@nmrc.ie> wrote:
> 
> >  Or is it just as simple as
> 
> > file.o: ../header.h
> 
> >  in subdir/Makefile.am?
> 
> This should work.

 Hhm, it doesn't.

make: Fatal error: Don't know how to make target `../types.h'

 The problem is that ../header.h should already be built before make enters
 subdir. The top level Makefile.am has

BUILT_SOURCES = header1.h header.h

 but only header1.h is built before entering subdir. This works with GNU
 make, but none of the BSD based makes (or Solaris make, for that matter).



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]