summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Winship <danw@gnome.org>2010-09-23 15:58:22 -0400
committerJakub Steiner <jimmac@gmail.com>2010-09-24 10:33:16 +0200
commitbb9239c7f268031bfb31bee995b8dbe2055068c9 (patch)
tree430c2696fa3c87bbf9be3dfc636b5b3f14fd4229
parentea51b3f27441c528bbcd7a836a25d239c9f7900f (diff)
downloadadwaita-icon-theme-bb9239c7f268031bfb31bee995b8dbe2055068c9.tar.gz
Run gtk-update-icon-cache after installing
https://bugzilla.gnome.org/show_bug.cgi?id=630465
-rw-r--r--Makefile.am3
-rw-r--r--configure.ac5
2 files changed, 8 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index 5149cccaf..bdbcec4a1 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -18,6 +18,9 @@ install-data-local:
touch $(DESTDIR)$(themedir); \
fi
+install-data-hook:
+ $(GTK_UPDATE_ICON_CACHE) -q $(DESTDIR)$(themedir)
+
EXTRA_DIST = gnome
MAINTAINERCLEANFILES = \
diff --git a/configure.ac b/configure.ac
index e1193fe30..2d148a13e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -47,6 +47,11 @@ if test "x$enable_mapping" != "xno"; then
fi
AC_SUBST(ICONMAP)
+AC_PATH_PROG(GTK_UPDATE_ICON_CACHE, gtk-update-icon-cache)
+if test -z "$GTK_UPDATE_ICON_CACHE"; then
+ AC_MSG_ERROR([Could not find gtk-update-icon-cache])
+fi
+
# need git, icontool, and inkscape for rendering
allow_rendering=yes
AC_PATH_PROG([GIT], [git], [false])