[gnome-online-accounts/gnome-3-8] build: Fix `make distcheck` by updating the icon cache on uninstall too



commit 20e58ac52f1d94da155ed264a5721f37c871948d
Author: Emanuele Aina <emanuele aina collabora com>
Date:   Sun Mar 3 20:22:11 2013 +0100

    build: Fix `make distcheck` by updating the icon cache on uninstall too
    
    Run gtk-update-icon-cache even on uninstall to clear the icon cache and
    avoid the following `make distcheck' error:
    
    ERROR: files left after uninstall:
    ./share/icons/hicolor/icon-theme.cache
    
    https://bugzilla.gnome.org/show_bug.cgi?id=695074

 data/icons/Makefile.am |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/data/icons/Makefile.am b/data/icons/Makefile.am
index 604aa86..df588a3 100644
--- a/data/icons/Makefile.am
+++ b/data/icons/Makefile.am
@@ -3,7 +3,7 @@ SUBDIRS = 16x16 22x22 24x24 32x32 48x48 256x256
 
 gtk_update_icon_cache = gtk-update-icon-cache -f -t $(datadir)/icons/hicolor
 
-install-data-hook:
+update-icon-cache:
        @-if test -z "$(DESTDIR)"; then \
                echo "Updating Gtk icon cache."; \
                $(gtk_update_icon_cache); \
@@ -12,6 +12,9 @@ install-data-hook:
                echo "***   $(gtk_update_icon_cache)"; \
        fi
 
+install-data-hook: update-icon-cache
+uninstall-hook: update-icon-cache
+
 clean-local :
        rm -f *~
 


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