From 0f37570e93b894fcd0b3f7dc90586f6c0685ad94 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). --- cogl/Makefile.am | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cogl/Makefile.am b/cogl/Makefile.am index 9e757b09d..67b353356 100644 --- a/cogl/Makefile.am +++ b/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