build: Do not distribute clutter-json.h
authorDamien Lespiau <damien.lespiau@intel.com>
Thu, 3 Jun 2010 10:59:48 +0000 (11:59 +0100)
committerDamien Lespiau <damien.lespiau@intel.com>
Thu, 3 Jun 2010 14:00:07 +0000 (15:00 +0100)
clutter-jon.h is generated at configure time, we should not distribute it.

This caused a build issue when compiling from a tarballs and out of tree
builds as we ended up with two clutter-json.h one in $(top_srcdir)/json
and the other in $(top_builddir)/json and picked up the wrong one
($(top_srcdir)/json is included first in the include search path).

clutter/Makefile.am

index 7983257..6cd2565 100644 (file)
@@ -285,9 +285,11 @@ EXTRA_LTLIBRARIES = libclutter-@CLUTTER_WINSYS@-@CLUTTER_API_VERSION@.la
 clutterdir = $(includedir)/clutter-$(CLUTTER_API_VERSION)/clutter
 clutter_HEADERS = \
        $(source_h) \
-       $(top_builddir)/clutter/clutter-json.h          \
        $(top_builddir)/clutter/clutter-enum-types.h    \
        $(top_srcdir)/clutter/clutter.h
+nodist_clutter_HEADERS = \
+       $(top_builddir)/clutter/clutter-json.h
+
 
 DISTCLEANFILES += clutter-version.h
 EXTRA_DIST += clutter-version.h.in