Commit 6c2853c4 authored by Alexei Sorokin's avatar Alexei Sorokin

Do not generate icon cache when DESTDIR is defined

parent d56c89df
......@@ -156,6 +156,8 @@ PKG_CHECK_MODULES(GLEW, glew, [have_glew=yes], [have_glew=no])
PKG_CHECK_MODULES(LIBCURL, libcurl, [have_libcurl=yes], [have_libcurl=no])
AM_CONDITIONAL(EARTH_PLUGIN, test "x$have_glew" = "xyes" && test "x$have_libcurl" = "xyes")
AC_PATH_PROG(UPDATE_ICON_CACHE, gtk-update-icon-cache)
AC_OUTPUT([
Makefile
icons/Makefile
......
......@@ -30,5 +30,6 @@ icons_DATA = \
plugin-workspacenames.svg
install-data-hook:
$(shell which gtk-update-icon-cache &> /dev/null && \
gtk-update-icon-cache -f -t $(DESTDIR)$(pluginiconsdir))
if test x$(DESTDIR) = x; then \
$(UPDATE_ICON_CACHE) -f -t $(pluginiconsdir); \
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment