From be58e5261f3b0c6a760577f67f2859511d6e52f2 Mon Sep 17 00:00:00 2001 From: Neil Roberts Date: Wed, 18 Nov 2009 19:23:57 +0000 Subject: [PATCH] build: Fix out-of-tree builds for cogl-defines.h $(COGL_DRIVER)/cogl-defines.h is generated in the configure script so it ends up in the build directory. Therefore the build rule for cogl/cogl-defines.h should depend on the file in $(builddir) not $(srcdir). --- clutter/cogl/cogl/Makefile.am | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clutter/cogl/cogl/Makefile.am b/clutter/cogl/cogl/Makefile.am index 9e757b0..67b3533 100644 --- a/clutter/cogl/cogl/Makefile.am +++ b/clutter/cogl/cogl/Makefile.am @@ -34,8 +34,8 @@ INCLUDES = \ -I$(top_builddir)/clutter/cogl \ $(NULL) -cogl-defines.h: $(srcdir)/driver/gl/cogl-defines.h $(srcdir)/driver/gles/cogl-defines.h - $(QUIET_GEN)cp -f $(srcdir)/driver/$(COGL_DRIVER)/cogl-defines.h $(@F) +cogl-defines.h: $(top_builddir)/clutter/cogl/cogl/driver/gl/cogl-defines.h $(top_builddir)/clutter/cogl/cogl/driver/gles/cogl-defines.h + $(QUIET_GEN)cp -f $(top_builddir)/clutter/cogl/cogl/driver/$(COGL_DRIVER)/cogl-defines.h $(@F) BUILT_SOURCES += cogl-defines.h DISTCLEANFILES += cogl-defines.h -- 2.7.4