mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Don't run gtk-update-icon-cache if DESTDIR is set
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>
This commit is contained in:
parent
84e6f200f6
commit
4d56123402
1 changed files with 3 additions and 1 deletions
4
Makefile
4
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)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue