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).
This commit is contained in:
parent
2d51159281
commit
0f37570e93
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user