On Oct 26, 2000, Thomas Nagler <[EMAIL PROTECTED]> wrote:
> Using the Makfile.am below starts in compiling the files without
> doing sysdep before. Therefore they miss sysdep.inc and sysdep.h files.
Add to Makefile.am the line:
$(libgetorb_a_OBJECTS) $(getorb_OBJECTS): sysdep.h sysdep.inc
> Maybe I do not use BUILT_SOURCES in the right way or I do misunderstand
> the automake 1.4 manual.
One thing you're doing that probably conflicts with the way automake
deals with BUILT_SOURCES is that:
> sysdep.h: sysdep Makefile
> ./sysdep
> sysdep.inc: sysdep Makefile
> ./sysdep
the generated files depend on Makefile. IIRC, automake arranges (or
used to arrange) for Makefile to depend on $(BUILT_SOURCES), to make
sure they're up-to-date whenever something else is built (as long as
you use GNU make, that implicitly considers Makefile a target). So,
you've got a cycle in the dependence graph, and some arc gets dropped.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me