# Installing Schemas

There are several things that need to happen at "`make install`" time.

- The schemas should be installed into a GConf configuration source; either the default source, or a source specified by the user with a `configure` option called `--enable-gconf-source`.

- The schema files should be installed to `$(sysconfdir)/gconf/schemas/`, making it easy for sysadmins to browse them or bulk-reinstall them into a new configuration source.

The AM_GCONF_SOURCE_2 macro will get the default location to install the schema. It will also add a `--enable-gconf-source` option and it will look in `$(sysconfdir)/gconf/schema-install-source` for a path. The GCONF_SCHEMA_CONFIG_SOURCE variable will be defined.

To get schemas installed properly add the macro to `configure.in`

    	  AM_GCONF_SOURCE_2

And put something like this in `Makefile.am`

    	  install-schemas:
    	      GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) \
    	      gconftool --makefile-install-rule my.schemas