Use the official autoconf and makefile rules for installing the gschema
file.
IT_PROG_INTLTOOL([0.40.0]) # Intltool
PKG_PROG_PKG_CONFIG # pkg_config
GTK_DOC_CHECK($GTK_DOC_REQUIRED_VERSION)
+GLIB_GSETTINGS # GSettings
# Other utilities used in this package's various make scripts
AC_PROG_AWK
AC_PATH_PROG([PERL], [perl]) # Perl
*.o
chimara
chimara.menus
+*.gschema.valid
chimara_CFLAGS = @TEST_CFLAGS@ $(AM_CFLAGS)
chimara_LDADD = @TEST_LIBS@ $(top_builddir)/libchimara/libchimara.la
-schemasdir = $(datadir)/glib-2.0/schemas
-dist_schemas_DATA = org.chimara-if.gschema.xml
-
-install-data-hook:
- glib-compile-schemas $(datadir)/glib-2.0/schemas
+gsettings_SCHEMAS = org.chimara-if.gschema.xml
+@GSETTINGS_RULES@
endif