summaryrefslogtreecommitdiff
path: root/metadata/Makefile.am
blob: 23ca4a9d99edbdba837fa11a0933f52903a5bbe0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
xmldir       = $(metadatadir)
xml_in_files =		  \
	core.xml.in	  \
	annotate.xml.in   \
	blur.xml.in	  \
	clone.xml.in	  \
	cube.xml.in	  \
	dbus.xml.in	  \
	decoration.xml.in \
	fade.xml.in	  \
	fs.xml.in	  \
	gconf.xml.in	  \
	glib.xml.in	  \
	ini.xml.in	  \
	inotify.xml.in	  \
	minimize.xml.in	  \
	move.xml.in	  \
	place.xml.in	  \
	plane.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)

@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 $@ $(srcdir)/schemas.xslt $(subst compiz-,,$*).xml;

xsltdir    = $(stylesheetdir)
xslt_files = schemas.xslt
xslt_DATA  = $(xslt_files)

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

EXTRA_DIST =		\
	$(xml_files)    \
	$(xml_in_files) \
	$(xslt_files)	\
	$(schema_files)

DISTCLEANFILES =	\
	$(xml_files)    \
	$(schema_files)