[gnome-boxes] Regenerate icon cache after icons (un)install



commit 1df775e5db35e1b89a16aac5be5888fcc8784f60
Author: Christophe Fergeau <cfergeau redhat com>
Date:   Mon Jul 16 10:00:27 2012 +0200

    Regenerate icon cache after icons (un)install
    
    Move generation of the icon cache to an (un)install hook, which
    should ensure that it's done after all needed files are in place.
    This should fix make distcheck which otherwise errors out with:
    
    ERROR: files left after uninstall:
    ./share/icons/hicolor/icon-theme.cache

 data/icons/Makefile.am |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/data/icons/Makefile.am b/data/icons/Makefile.am
index fb244c6..e834a65 100644
--- a/data/icons/Makefile.am
+++ b/data/icons/Makefile.am
@@ -72,8 +72,10 @@ uninstall-icons:
 		rm -f $(DESTDIR)$(datadir)/icons/$$THEME/$$SIZE/$$CONTEXT/$$ICONFILE; \
 	done
 
-install-data-local: install-icons update-icon-cache
+install-data-local: install-icons
+install-data-hook: update-icon-cache
 
-uninstall-local: uninstall-icons update-icon-cache
+uninstall-local: uninstall-icons
+uninstall-hook: update-icon-cache
 
 -include $(top_srcdir)/git.mk



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]