[banshee] [build] Don't run update-desktop-database if DESTDIR is set



commit 0c6a19c9ce751e6d77541eb451c120ef8ff7887c
Author: Christian Krause <chkr plauener de>
Date:   Sun Sep 12 20:22:25 2010 +0200

    [build] Don't run update-desktop-database if DESTDIR is set
    
    If we're in a staged install, we shouldn't update the desktop database,
    the installation tool should do it in a post-install step.
    Checking if we're in an out-of-tree build is not relevant in that case.
    
    Signed-off-by: Bertrand Lorentz <bertrand lorentz gmail com>

 data/desktop-files/Makefile.am |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/data/desktop-files/Makefile.am b/data/desktop-files/Makefile.am
index af5a04c..a59c40d 100644
--- a/data/desktop-files/Makefile.am
+++ b/data/desktop-files/Makefile.am
@@ -17,7 +17,7 @@ endif
 @INTLTOOL_DESKTOP_RULE@
 
 install-data-hook:
-	test "$(top_srcdir)" = "$(top_builddir)" && update-desktop-database $(DESTDIR)$(datadir)/applications || :
+	test -z $(DESTDIR) && update-desktop-database $(DESTDIR)$(datadir)/applications || :
 
 EXTRA_DIST = \
 	$(desktop_in_files) \



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]