summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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])