summaryrefslogtreecommitdiff
path: root/metadata/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'metadata/Makefile.am')
-rw-r--r--metadata/Makefile.am15
1 files changed, 15 insertions, 0 deletions
diff --git a/metadata/Makefile.am b/metadata/Makefile.am
index d26f323..e6e30c6 100644
--- a/metadata/Makefile.am
+++ b/metadata/Makefile.am
@@ -24,3 +24,18 @@ meta_DATA = \
wall.xml
EXTRA_DIST = $(meta_DATA)
+
+if USE_SCHEMAS
+schemadir = $(GCONF_SCHEMA_FILE_DIR)
+schema_DATA = $(patsubst %.xml,compiz-%.schemas,$(meta_DATA))
+
+%.schemas: $(meta_DATA)
+ xsltproc -o $@ $(xsltdir)/schemas.xslt $(subst compiz-,,$*).xml;
+
+if GCONF_SCHEMAS_INSTALL
+install-data-local:
+ if test -z "$(DESTDIR)" ; then \
+ GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-install-rule $(schema_DATA); \
+ fi
+endif
+endif