From 94a6ebd93eb076a65054e97aeebe58c12ad3524a Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Mon, 8 Feb 2021 11:49:07 -0500 Subject: [PATCH] icons/Makefile.am: regenerate the icon cache after an uninstall, too. This fixes "make distcheck" which otherwise complains about the leftover icon cache file. --- icons/Makefile.am | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/icons/Makefile.am b/icons/Makefile.am index 652d7be..2052549 100644 --- a/icons/Makefile.am +++ b/icons/Makefile.am @@ -17,12 +17,23 @@ SUBDIRS = \ gtk_update_icon_cache = gtk-update-icon-cache -f -t $(datadir)/icons/hicolor install-data-hook: - @-if test -z "$(DESTDIR)"; then \ + @-if test -z "$(DESTDIR)"; then \ echo "Updating Gtk icon cache."; \ $(gtk_update_icon_cache); \ else \ echo "*** Icon cache not updated. Remember to run:"; \ - echo "***"; \ + echo "***"; \ echo "*** $(gtk_update_icon_cache)"; \ - echo "***"; \ + echo "***"; \ + fi + +uninstall-hook: + @-if test -z "$(DESTDIR)"; then \ + echo "Updating Gtk icon cache."; \ + $(gtk_update_icon_cache); \ + else \ + echo "*** Icon cache not updated. Remember to run:"; \ + echo "***"; \ + echo "*** $(gtk_update_icon_cache)"; \ + echo "***"; \ fi -- 2.44.2