Packagers generally use "make install DESTDIR=xxx" to generate their install
files, which are then copied in place to the target filesystem. In such a
scenario, it's inappropriate to copy the icon.cache files. This change
therefore does not update the icon cache if a DESTDIR has been specified.
Instead it's left to the packager to make his own arrangements for updating
the icon cache on the target filesystem.
$(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