aboutsummaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-02-18 14:03:11 -0600
committerTed Gould <ted@canonical.com>2009-02-18 14:03:11 -0600
commit971633d8ec5a8a8f8b9d647cd4ac6e0699abefd6 (patch)
tree574d7dcea6e1127d1e8ab8ed7cf4607088259875 /data
parentfba553cd8a240329b329dfb478e119860c176333 (diff)
downloadlibayatana-indicator-971633d8ec5a8a8f8b9d647cd4ac6e0699abefd6.tar.gz
libayatana-indicator-971633d8ec5a8a8f8b9d647cd4ac6e0699abefd6.tar.bz2
libayatana-indicator-971633d8ec5a8a8f8b9d647cd4ac6e0699abefd6.zip
Adding in the autotools stuff for installing an icon.
Diffstat (limited to 'data')
-rw-r--r--data/Makefile.am24
1 files changed, 24 insertions, 0 deletions
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
+
+