summaryrefslogtreecommitdiff
path: root/data/Makefile.am
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2011-12-11 12:55:19 +0100
committerStefano Karapetsas <[email protected]>2011-12-11 12:55:19 +0100
commit51175189c6d7313a3b84019e39496f957c4e6164 (patch)
treee4c2c130fa3140bca28685ef900f04a012e53dcd /data/Makefile.am
downloadmate-power-manager-51175189c6d7313a3b84019e39496f957c4e6164.tar.bz2
mate-power-manager-51175189c6d7313a3b84019e39496f957c4e6164.tar.xz
moved from Mate-Extra
Diffstat (limited to 'data/Makefile.am')
-rw-r--r--data/Makefile.am60
1 files changed, 60 insertions, 0 deletions
diff --git a/data/Makefile.am b/data/Makefile.am
new file mode 100644
index 0000000..09faa15
--- /dev/null
+++ b/data/Makefile.am
@@ -0,0 +1,60 @@
+SUBDIRS = icons
+
+@INTLTOOL_SCHEMAS_RULE@
+schemadir = $(sysconfdir)/mateconf/schemas
+schema_in_files = mate-power-manager.schemas.in
+schema_DATA = $(schema_in_files:.schemas.in=.schemas)
+
+@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 = mate-power-manager.service.in
+service_DATA = $(service_in_files:.service.in=.service)
+
+$(service_DATA): $(service_in_files) Makefile
+ @sed -e "s|\@servicedir\@|$(bindir)|" $< > $@
+
+pkgdata_DATA = \
+ gpm-statistics.ui \
+ gpm-feedback-widget.ui \
+ gpm-prefs.ui \
+ acme.ui
+
+EXTRA_DIST = \
+ mate-power-manager.schemas.in \
+ $(schema_in_files) \
+ $(desktop_in_files) \
+ $(autostart_in_files) \
+ $(service_in_files) \
+ $(pkgdata_DATA)
+
+if MATECONF_SCHEMAS_INSTALL
+install-data-local:
+ -MATECONF_CONFIG_SOURCE=$(MATECONF_SCHEMA_CONFIG_SOURCE) \
+ $(MATECONFTOOL) --makefile-install-rule $(schema_DATA)
+endif
+
+if MATECONF_SCHEMAS_INSTALL
+uninstall-local:
+ -MATECONF_CONFIG_SOURCE=$(MATECONF_SCHEMA_CONFIG_SOURCE) \
+ $(MATECONFTOOL) --makefile-uninstall-rule $(schema_DATA)
+endif
+
+clean-local :
+ rm -f *~
+
+DISTCLEANFILES = \
+ mate-power-manager.desktop \
+ mate-power-preferences.desktop \
+ mate-power-statistics.desktop \
+ mate-power-manager.schemas \
+ mate-power-manager.service