[tracker] Only use conditionals for final .desktop files



commit af38924d629bcfc35b1a3356787001ba12da7821
Author: Martyn Russell <martyn lanedo com>
Date:   Tue May 11 15:59:47 2010 +0100

    Only use conditionals for final .desktop files

 data/Makefile.am |   52 +++++++++++++++++-----------------------------------
 1 files changed, 17 insertions(+), 35 deletions(-)
---
diff --git a/data/Makefile.am b/data/Makefile.am
index 77c441f..40f31e8 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -2,8 +2,7 @@ include $(top_srcdir)/Makefile.decl
 
 SUBDIRS = db dbus languages icons ontologies miners
 
-# Autostart .in.in files are used to fix VERSION and libexecdir
-# variables in the .in files.
+# First we fix the VERSION and libexecdir in the desktop files
 tracker-status-icon.desktop.in: tracker-status-icon.desktop.in.in
 	@sed -e "s|@bindir[ ]|${bindir}|" 		\
 	     -e "s|@VERSION[ ]|${VERSION}|" $< > $@
@@ -16,48 +15,31 @@ tracker-miner-fs.desktop.in: tracker-miner-fs.desktop.in.in
 	@sed -e "s|@libexecdir[ ]|${libexecdir}|" 	\
 	     -e "s|@VERSION[ ]|${VERSION}|" $< > $@
 
-if USING_MINER_RSS
-tracker-miner-rss.desktop.in: tracker-miner-rss.desktop.in.in
+tracker-miner-flickr.desktop.in: tracker-miner-flickr.desktop.in.in
 	@$(SED) -e "s|@libexecdir[ ]|${libexecdir}|" 	\
 	     -e "s|@VERSION[ ]|${VERSION}|" $< > $@
-endif
 
-if HAVE_MINER_FLICKR
-tracker-miner-flickr.desktop.in: tracker-miner-flickr.desktop.in.in
+tracker-miner-rss.desktop.in: tracker-miner-rss.desktop.in.in
 	@$(SED) -e "s|@libexecdir[ ]|${libexecdir}|" 	\
 	     -e "s|@VERSION[ ]|${VERSION}|" $< > $@
-endif
 
-autostartdir = $(sysconfdir)/xdg/autostart
-autostart_in_in_files = 				\
+desktop_in_in_files = 					\
 	tracker-status-icon.desktop.in.in		\
 	tracker-store.desktop.in.in			\
-	tracker-miner-fs.desktop.in.in
-
-if USING_MINER_RSS
-autostart_in_in_files += tracker-miner-rss.desktop.in.in
-endif
-
-if HAVE_MINER_FLICKR
-autostart_in_in_files += tracker-miner-flickr.desktop.in.in
-endif
+	tracker-miner-fs.desktop.in.in			\
+	tracker-miner-flickr.desktop.in.in		\
+	tracker-miner-rss.desktop.in.in
 
-# Autostart .in files are used for translations. Optional extras to
-# the regular miners are listed below.
-autostart_in_files = 					\
+# Second take those new .in files and translate them
+desktop_in_files = 					\
 	tracker-status-icon.desktop.in			\
 	tracker-store.desktop.in			\
-	tracker-miner-fs.desktop.in
+	tracker-miner-fs.desktop.in			\
+	tracker-miner-flickr.desktop.in			\
+	tracker-miner-rss.desktop.in
 
-if USING_MINER_RSS
-autostart_in_files += tracker-miner-rss.desktop.in
-endif
-
-if HAVE_MINER_FLICKR
-autostart_in_files += tracker-miner-flickr.desktop.in
-endif
-
-# Autostart final files are installed
+# Third we choose what we want installed based on config
+autostartdir = $(sysconfdir)/xdg/autostart
 autostart_DATA = 					\
 	tracker-store.desktop				\
 	tracker-miner-fs.desktop
@@ -76,7 +58,7 @@ endif
 
 @INTLTOOL_DESKTOP_RULE@
 
-# pkg-config .pc files for exported libraries
+# Set up pkg-config .pc files for exported libraries
 pkgconfigdir = $(libdir)/pkgconfig
 pkgconfig_DATA = 					\
 	tracker-client-$(TRACKER_API_VERSION).pc	\
@@ -94,9 +76,9 @@ tracker-miner-$(TRACKER_API_VERSION).pc: tracker-miner.pc
 
 CLEANFILES = 						\
 	$(autostart_DATA) 				\
-	$(autostart_in_files)				\
+	$(desktop_in_files)				\
 	tracker-client-$(TRACKER_API_VERSION).pc	\
 	tracker-extract-$(TRACKER_API_VERSION).pc	\
 	tracker-miner-$(TRACKER_API_VERSION).pc
 
-EXTRA_DIST = $(autostart_in_in_files)
+EXTRA_DIST = $(desktop_in_in_files)



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