Really add the schema, and some related autoconf/automake fixes
[platform/core/uifw/at-spi2-atk.git] / Makefile.am
index 44640b7..9fb6883 100644 (file)
@@ -1,18 +1,23 @@
-SUBDIRS=xml tools droute spi-common atk-adaptor registryd dbind cspi login-helper tests
+SUBDIRS=dbind droute common atk-adaptor po
 
-pkgconfigdir = $(libdir)/pkgconfig
-pkgconfig_DATA = libspi-1.0.pc cspi-1.0.pc libloginhelper-1.0.pc
+schemasdir       = $(GCONF_SCHEMA_FILE_DIR)
+schemas_in_files = at-spi2.schemas.in
+schemas_DATA     = $(schemas_in_files:.schemas.in=.schemas)
+@INTLTOOL_SCHEMAS_RULE@
+
+if GCONF_SCHEMAS_INSTALL
+install-data-local:
+                if test -z "$(DESTDIR)" ; then \
+                        for p in $(schemas_DATA) ; do \
+                                GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-install-rule $(top_builddir)/data/$$p ; \
+                        done \
+                fi
+else
+install-data-local:
+endif
 
 EXTRA_DIST = \
-       intltool-extract.in \
-       intltool-merge.in   \
-       intltool-update.in  \
-       cspi-1.0.pc.in \
-       cspi-1.0-uninstalled.pc.in \
-       libloginhelper-1.0.pc.in \
-       libspi-1.0.pc.in \
-       libspi-1.0-uninstalled.pc.in
+       $(schemas_in_files)
 
-DISTCLEANFILES = intltool-extract \
-       intltool-merge  \
-       intltool-update
+CLEANFILES = \
+       $(schemas_data)