Blob Blame History Raw
=== modified file 'Makefile.am'
--- Makefile.am	2012-07-15 16:05:17 +0000
+++ Makefile.am	2013-09-18 19:39:22 +0000
@@ -4,7 +4,7 @@
 ##
 # GPX Viewer
 ##
-desktopdir = $(DESTDIR)/$(datadir)/applications
+desktopdir = $(datadir)/applications
 desktop_in_files = data/gpx-viewer.desktop.in
 desktop_DATA=$(desktop_in_files:.desktop.in=.desktop)
 @INTLTOOL_DESKTOP_RULE@
@@ -140,7 +140,7 @@
 uninstall-hook: update-icon-cache update-mime-cache update-desktop-cache
 
 update-desktop-cache:
-	update-desktop-database $(desktopdir)
+	update-desktop-database $(DESTDIR)$(desktopdir)
 
 update-icon-cache:
 	@-if test -z "$(DESTDIR)"; then \