From c3b4e76655aa6b675ba01f5af12ff375a8cd2a8c Mon Sep 17 00:00:00 2001 From: Stefano Karapetsas Date: Fri, 23 Dec 2011 22:59:38 +0100 Subject: import from Mate-Extra repository --- data/Makefile.am | 81 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 data/Makefile.am (limited to 'data/Makefile.am') diff --git a/data/Makefile.am b/data/Makefile.am new file mode 100644 index 0000000..f47d3a7 --- /dev/null +++ b/data/Makefile.am @@ -0,0 +1,81 @@ +# This file will be processed with automake to create Makefile.in + +############################## +# Applets +############################## + +appletdir = $(datadir)/mate-panel/applets +applet_in_files = \ + org.ayatana.panel.IndicatorApplet.mate-panel-applet.in \ + org.ayatana.panel.IndicatorAppletComplete.mate-panel-applet.in \ + org.ayatana.panel.IndicatorAppletAppmenu.mate-panel-applet.in \ + org.ayatana.panel.FastUserSwitchApplet.mate-panel-applet.in +applet_DATA = $(applet_in_files:.mate-panel-applet.in=.mate-panel-applet) + +%.mate-panel-applet.in: %.mate-panel-applet.in.in Makefile + $(AM_V_GEN)sed \ + -e "s|\@LIBEXECDIR\@|$(libexecdir)|" \ + $< > $@ + +%.mate-panel-applet: %.mate-panel-applet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*po) ; $(AM_V_GEN) LC_ALL=C $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache + + +############################## +# DBus Services +############################## + +servicedir = $(datadir)/dbus-1/services +service_in_files = \ + org.mate.panel.applet.IndicatorAppletFactory.service.in \ + org.mate.panel.applet.IndicatorAppletCompleteFactory.service.in \ + org.mate.panel.applet.IndicatorAppletAppmenuFactory.service.in \ + org.mate.panel.applet.FastUserSwitchAppletFactory.service.in +service_DATA = $(service_in_files:.service.in=.service) + +%.service: %.service.in Makefile + $(AM_V_GEN)sed \ + -e "s|\@LIBEXECDIR\@|$(libexecdir)|" \ + $< > $@ + + +############################## +# Icons +############################## + +iconsdir = $(datadir)/icons/hicolor/scalable/apps + +icons_DATA = indicator-applet.svg + +gtk_update_icon_cache = gtk-update-icon-cache -f -t $(datadir)/icons/hicolor + +install-data-hook: update-icon-cache +uninstall-hook: update-icon-cache +update-icon-cache: + @-if test -z "$(DESTDIR)"; then \ + echo "Updating Gtk icon cache."; \ + $(gtk_update_icon_cache); \ + else \ + echo "*** Icon cache not updated. After (un)install, run this:"; \ + echo "*** $(gtk_update_icon_cache)"; \ + fi + + +############################## +# Autojunk +############################## + +CLEANFILES = \ + $(applet_in_files) \ + $(applet_DATA) \ + $(service_DATA) \ + *.bak + +EXTRA_DIST = \ + $(icons_DATA) \ + $(applet_in_files:.in=.in.in) \ + $(service_in_files) + +MAINTAINERCLEANFILES = \ + Makefile.in + + -- cgit v1.2.1