diff --git a/docs/reference/gio/migrating.xml b/docs/reference/gio/migrating.xml index af3adbdf4..8b886ae1a 100644 --- a/docs/reference/gio/migrating.xml +++ b/docs/reference/gio/migrating.xml @@ -392,15 +392,19 @@ produces a org.gnome.font-rendering.gschema.xml file with t variable for the schema compiler, which can be used in configure.in as follows: -AC_SUBST(gsettingsupdateschemacache, `pkg-config --variable gsettingsupdateschemacache gio-2.0`) +AM_GSETTINGS The corresponding Makefile.am fragment looks like this: -gsettingsschemadir = $(prefix)/glib-2.0/schemas +# gsettingsschemadir is defined by the AM_GSETTINGS macro in configure.ac gsettingsschema_DATA = my.app.gschema.xml +# This rule will check your schemas for validity before installation +@GSETTINGS_CHECK_RULE@ +if GSETTINGS_SCHEMAS_INSTALL install-data-hook: - $(gsettingsupdateschemacache) $(DESTDIR)$(gsettingsschemadir) + $(gsettingsupdateschemacache) $(DESTDIR)$(gsettingsschemadir) +endif