Re: [SOLUTION] autogenerated file problems



Frank Belew <frb ximian com> writes:

> Ok, I did some digging into the Makefile generated and discovered the
> problem.
> 
> Right now you use 
> $(OBJECTS): some deps
> This never gets interpreted by automake 1.5 as dependencies of |.c.o| or
> any of the other object rules.
> 
> To fix this, I changed
> $(OBJECTS): $(gdk_pixbuf_built_headers) $(gdk_pixbuf_built_cfiles) \
>             gdk-pixbuf-marshal.c
>  to
> $(libgdk_pixbuf_1_3_la_OBJECTS): $(gdk_pixbuf_built_headers) \
>                                  $(gdk_pixbuf_built_cfiles) \
>                                  gdk-pixbuf-marshal.c
> 
> Gtk now compiles fine (apart from an awk error on solaris which I fixed
> as well)
> 
> This patch has a gratuitous dep on gdk-pixbuf-marshal.h for
> gtk-pixbuf-marshal.c, since automake 1.5 doesn't seem to handle
> autogenerated files depending on other autogenerated files.

Why would the .c file depend on the .h file?

                                        Owen




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]