]> gitweb.michael.orlitzky.com - xfce4-hdaps.git/commitdiff
icons/Makefile.am: regenerate the icon cache after an uninstall, too.
authorMichael Orlitzky <michael@orlitzky.com>
Mon, 8 Feb 2021 16:49:07 +0000 (11:49 -0500)
committerMichael Orlitzky <michael@orlitzky.com>
Mon, 8 Feb 2021 17:55:17 +0000 (12:55 -0500)
This fixes "make distcheck" which otherwise complains about the
leftover icon cache file.

icons/Makefile.am

index 652d7be8c277cf93e518b3a3a5fc31d0868fc9ea..2052549e9bb12a5007d3d7edd878668b686986af 100644 (file)
@@ -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