xmldir = $(metadatadir) xml_in_files = \ core.xml.in \ annotate.xml.in \ blur.xml.in \ clone.xml.in \ commands.xml.in \ cube.xml.in \ dbus.xml.in \ decoration.xml.in \ fade.xml.in \ fs.xml.in \ gconf.xml.in \ glib.xml.in \ gnomecompat.xml.in \ ini.xml.in \ inotify.xml.in \ kconfig.xml.in \ minimize.xml.in \ move.xml.in \ obs.xml.in \ place.xml.in \ png.xml.in \ regex.xml.in \ resize.xml.in \ rotate.xml.in \ scale.xml.in \ screenshot.xml.in \ svg.xml.in \ switcher.xml.in \ video.xml.in \ water.xml.in \ wobbly.xml.in \ zoom.xml.in xml_files = $(xml_in_files:.xml.in=.xml) xml_DATA = $(xml_files) core.xml.in: core.xml.in.in Makefile plugins=$(default_plugins); \ if [ -z $$plugins ]; then plugins="core"; fi; \ plugin_values=`echo $$plugins | sed 's/\([a-zA-Z0-9]*\)/\1<\/value>/g' | tr ',' '\n' | sed 's/^/\t\t /g'`; \ $(AWK) -v aa="$$plugin_values" '{gsub("\t\t ", aa); print }' <$(srcdir)/core.xml.in.in >core.xml.in @INTLTOOL_XML_RULE@ if USE_GCONF schemadir = $(GCONF_SCHEMA_FILE_DIR) schema_files = $(patsubst %.xml.in,compiz-%.schemas,$(xml_in_files)) schema_DATA = $(schema_files) %.schemas: $(xml_files) xsltproc -o $@ --param defaultPlugins "'$(default_plugins)'" \ $(srcdir)/schemas.xslt $(subst compiz-,,$*).xml schemas_stylesheets = schemas.xslt endif if USE_KCONFIG kde_kcfgdir = $(DESTDIR)$(KDE_KCFG_DIR) kde_kcfg_files = $(patsubst %.xml.in,compiz-%.kcfg,$(xml_in_files)) kde_kcfg_stylesheets = kcfg.xslt %.kcfg: $(xml_files) xsltproc -o $@ $(srcdir)/kcfg.xslt $(subst compiz-,,$*).xml; kde_configdir = $(DESTDIR)$(KDE_KCONFIG_DIR) kde_config_files = compizrc compizrc: $(kde_kcfg_files) xsltproc --stringparam screen 0 $(srcdir)/kconfig.xslt \ $(kde_kcfg_files) > $@; kde_config_stylesheets = kconfig.xslt endif noinst_DATA = \ $(kde_kcfg_files) \ $(kde_config_files) install-data-local: if USE_GCONF if GCONF_SCHEMAS_INSTALL if test -z "$(DESTDIR)" ; then \ GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-install-rule $(schema_DATA); \ fi endif endif if USE_KCONFIG if mkdir -p $(kde_kcfgdir) && test -w $(kde_kcfgdir); then ( \ $(INSTALL) -m 644 $(kde_kcfg_files) $(kde_kcfgdir) \ ); \ fi if mkdir -p $(kde_configdir) && test -w $(kde_configdir); then ( \ $(INSTALL) -m 644 $(kde_config_files) $(kde_configdir) \ ); \ fi endif uninstall-local: if USE_KCONFIG if test -w $(kde_kcfgdir); then ( \ for file in $(kde_kcfg_files); do \ rm -f $(kde_kcfgdir)/$$file; \ done \ ); \ fi if test -w $(kde_configdir); then ( \ for file in $(kde_config_files); do \ rm -f $(kde_configdir)/$$file; \ done \ ); \ fi endif xsltdir = $(stylesheetdir) xslt_files = \ $(schemas_stylesheets) \ $(kde_kcfg_stylesheets) \ $(kde_config_stylesheets) xslt_DATA = $(xslt_files) EXTRA_DIST = \ $(xml_in_files) \ core.xml.in.in \ $(xslt_files) DISTCLEANFILES = \ $(xml_files) \ core.xml.in \ $(schema_files) \ $(kde_kcfg_files) \ $(kde_config_files)