diff options
Diffstat (limited to 'pixmaps')
-rwxr-xr-x | pixmaps/Makefile.am | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/pixmaps/Makefile.am b/pixmaps/Makefile.am index 04b927f..117db3a 100755 --- a/pixmaps/Makefile.am +++ b/pixmaps/Makefile.am @@ -34,3 +34,16 @@ icon128_DATA = 128x128/gncpmount.png EXTRA_DIST = $(icon16_DATA) $(icon22_DATA) $(icon24_DATA) $(icon32_DATA) $(icon36_DATA) $(icon48_DATA) $(icon64_DATA) $(icon72_DATA) $(icon96_DATA) $(icon128_DATA) + +gtk_update_icon_cache = gtk-update-icon-cache -f -t $(myiconspath) + +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 |