summaryrefslogtreecommitdiff
path: root/data/Makefile.am
blob: 355dafe4fd0840782bf493e8d3287e549479e8c4 (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
SUBDIRS = icons


@INTLTOOL_DESKTOP_RULE@
desktopdir = $(datadir)/applications
desktop_in_files = mate-power-preferences.desktop.in \
		   mate-power-statistics.desktop.in
desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)

@INTLTOOL_DESKTOP_RULE@
autostartdir = $(sysconfdir)/xdg/autostart
autostart_in_files = mate-power-manager.desktop.in
autostart_DATA = $(autostart_in_files:.desktop.in=.desktop)

servicedir       = $(DBUS_SERVICES_DIR)
service_in_files = org.mate.PowerManager.service.in
service_DATA     = $(service_in_files:.service.in=.service)

$(service_DATA): $(service_in_files) Makefile
	@sed -e "s|\@servicedir\@|$(bindir)|" $< > $@

@GSETTINGS_RULES@
@INTLTOOL_XML_NOMERGE_RULE@
gsettings_schemas_in_files = org.mate.power-manager.gschema.xml.in
gsettings_SCHEMAS = $(gsettings_schemas_in_files:.gschema.xml.in=.gschema.xml)

convertdir = $(datadir)/MateConf/gsettings
convert_DATA = mate-power-manager.convert

pkgdata_DATA =						\
	gpm-statistics.ui				\
	gpm-statistics-deprecated.ui	\
	gpm-feedback-widget.ui			\
	gpm-prefs.ui					\
	gpm-prefs-deprecated.ui			\
	acme.ui

EXTRA_DIST =						\
	$(gsettings_SCHEMAS)				\
	$(service_in_files)				\
	$(autostart_in_files)				\
	$(desktop_in_files)				\
	$(gsettings_schemas_in_files)	\
	$(convert_DATA)					\
	$(pkgdata_DATA)

clean-local :
	rm -f *~

DISTCLEANFILES =					\
	mate-power-manager.desktop			\
	mate-power-preferences.desktop			\
	mate-power-statistics.desktop			\
	org.mate.PowerManager.service		\
	org.mate.power-manager.gschema.xml