From 971633d8ec5a8a8f8b9d647cd4ac6e0699abefd6 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Wed, 18 Feb 2009 14:03:11 -0600 Subject: Adding in the autotools stuff for installing an icon. --- data/Makefile.am | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/data/Makefile.am b/data/Makefile.am index 7fc4a6f..a03fadc 100644 --- a/data/Makefile.am +++ b/data/Makefile.am @@ -32,6 +32,27 @@ schema_DATA = \ @INTLTOOL_SCHEMAS_RULE@ +############################## +# 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 @@ -44,6 +65,7 @@ CLEANFILES = \ *.bak EXTRA_DIST = \ + $(icons_DATA) \ GNOME_IndicatorApplet.server.in.in \ $(schema_in_files) @@ -58,3 +80,5 @@ else install-data-local: endif + + -- cgit v1.2.3