Don't update the icon cache if DESTDIR is non-empty.
[pspp] / src / ui / gui / automake.mk
index 8de1f910361175c03da27818a5c1cae92aa630a5..cd2696fba55894453e139d65ebaed9191afaff95 100644 (file)
@@ -96,7 +96,9 @@ install-icons:
          $(MKDIR_P) $(themedir)/$$size/apps ; \
          $(INSTALL_DATA) $(top_srcdir)/src/ui/gui/app-icons/$$size/pspp.png $(themedir)/$$size/apps ; \
        done 
-       gtk-update-icon-cache --ignore-theme-index $(themedir)
+       if test -z "$(DESTDIR)" ; then \
+               gtk-update-icon-cache --ignore-theme-index $(themedir); \
+       fi
 
 INSTALL_DATA_HOOKS += install-icons install-lang