]> git.tdb.fi Git - ext/subsurface.git/commitdiff
Don't run gtk-update-icon-cache if DESTDIR is set
authorRoland Dreier <roland@digitalvampire.org>
Mon, 31 Oct 2011 20:05:55 +0000 (13:05 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 1 Nov 2011 00:06:41 +0000 (17:06 -0700)
We don't want to run gtk-update-icon-cache during a package build, when
we're installing into a staging directory just to create a tree that will
be packaged up and really installed later.  The standard heuristic seems
to be to skip gtk-update-icon-cache if DESTDIR is set (ie we're installing
to a different location than we're configured to run from).

Signed-off-by: Roland Dreier <roland@digitalvampire.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Makefile

index 0d736e1b761452225f34c496cdf6d89be6c1f854..3f563a3b51e55af0aa264e29fc21890da39ba4a6 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -90,7 +90,9 @@ install: $(NAME)
        $(INSTALL) $(DESKTOPFILE) $(DESKTOPDIR)
        $(INSTALL) -d -m 755 $(ICONDIR)
        $(INSTALL) $(ICONFILE) $(ICONDIR)
-       $(gtk_update_icon_cache)
+       @-if test -z "$(DESTDIR)"; then \
+               $(gtk_update_icon_cache); \
+       fi
        $(INSTALL) -d -m 755 $(MANDIR)
        $(INSTALL) -m 644 $(MANFILES) $(MANDIR)