[tracker/data-in-binary-dirs: 13/13] data: Make sure miner links don't fail with missing parent dir
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/data-in-binary-dirs: 13/13] data: Make sure miner links don't fail with missing parent dir
- Date: Sat, 27 Sep 2014 12:18:40 +0000 (UTC)
commit f22c5d6a5dcbd6a849e60fe29374d9b004af40c8
Author: Martyn Russell <martyn lanedo com>
Date: Fri Sep 26 21:45:24 2014 +0100
data: Make sure miner links don't fail with missing parent dir
src/miners/apps/Makefile.am | 9 +++++----
src/miners/fs/Makefile.am | 9 +++++----
src/miners/rss/Makefile.am | 9 +++++----
src/miners/user-guides/Makefile.am | 9 +++++----
src/plugins/evolution/Makefile.am | 9 +++++----
src/tracker-extract/Makefile.am | 9 +++++----
6 files changed, 30 insertions(+), 24 deletions(-)
---
diff --git a/src/miners/apps/Makefile.am b/src/miners/apps/Makefile.am
index d31dd57..9e450b7 100644
--- a/src/miners/apps/Makefile.am
+++ b/src/miners/apps/Makefile.am
@@ -32,11 +32,12 @@ INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard
@INTLTOOL_SERVICE_RULE@
install-data-hook:
- cd $(DESTDIR)$(datadir)/tracker/miners && \
- $(LN_S) -f $(servicedir)/$(service_DATA)
+ $(MKDIR_P) "$(DESTDIR)$(datadir)/tracker/miners" && \
+ $(LN_S) -f "$(DESTDIR)$(datadir)/tracker/miners/$(service_DATA)" \
+ "$(DESTDIR)$(servicedir)/$(service_DATA)"
+
uninstall-local:
- cd $(DESTDIR)$(datadir)/tracker/miners && \
- $(RM) $(DESTDIR)$(datadir)/tracker/miners/$(service_DATA)
+ $(RM) "$(DESTDIR)$(datadir)/tracker/miners/$(service_DATA)"
# Desktop files: First we fix the VERSION and libexecdir
%.desktop.in: %.desktop.in.in
diff --git a/src/miners/fs/Makefile.am b/src/miners/fs/Makefile.am
index fec5cdf..ef3a303 100644
--- a/src/miners/fs/Makefile.am
+++ b/src/miners/fs/Makefile.am
@@ -64,11 +64,12 @@ INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard
@INTLTOOL_SERVICE_RULE@
install-data-hook:
- cd $(DESTDIR)$(datadir)/tracker/miners && \
- $(LN_S) -f $(servicedir)/$(service_DATA)
+ $(MKDIR_P) "$(DESTDIR)$(datadir)/tracker/miners" && \
+ $(LN_S) -f "$(DESTDIR)$(datadir)/tracker/miners/$(service_DATA)" \
+ "$(DESTDIR)$(servicedir)/$(service_DATA)"
+
uninstall-local:
- cd $(DESTDIR)$(datadir)/tracker/miners && \
- $(RM) $(DESTDIR)$(datadir)/tracker/miners/$(service_DATA)
+ $(RM) "$(DESTDIR)$(datadir)/tracker/miners/$(service_DATA)"
# Desktop files: First we fix the VERSION and libexecdir
if HAVE_LIBMEDIAART
diff --git a/src/miners/rss/Makefile.am b/src/miners/rss/Makefile.am
index 7c1dbc6..6385c0e 100644
--- a/src/miners/rss/Makefile.am
+++ b/src/miners/rss/Makefile.am
@@ -32,11 +32,12 @@ INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard
@INTLTOOL_SERVICE_RULE@
install-data-hook:
- cd $(DESTDIR)$(datadir)/tracker/miners && \
- $(LN_S) -f $(servicedir)/$(service_DATA)
+ $(MKDIR_P) "$(DESTDIR)$(datadir)/tracker/miners" && \
+ $(LN_S) -f "$(DESTDIR)$(datadir)/tracker/miners/$(service_DATA)" \
+ "$(DESTDIR)$(servicedir)/$(service_DATA)"
+
uninstall-local:
- cd $(DESTDIR)$(datadir)/tracker/miners && \
- $(RM) $(DESTDIR)$(datadir)/tracker/miners/$(service_DATA)
+ $(RM) "$(DESTDIR)$(datadir)/tracker/miners/$(service_DATA)"
# Desktop files: First we fix the VERSION and libexecdir
%.desktop.in: %.desktop.in.in
diff --git a/src/miners/user-guides/Makefile.am b/src/miners/user-guides/Makefile.am
index 60112bc..74aea0c 100644
--- a/src/miners/user-guides/Makefile.am
+++ b/src/miners/user-guides/Makefile.am
@@ -32,11 +32,12 @@ INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard
@INTLTOOL_SERVICE_RULE@
install-data-hook:
- cd $(DESTDIR)$(datadir)/tracker/miners && \
- $(LN_S) -f $(servicedir)/$(service_DATA)
+ $(MKDIR_P) "$(DESTDIR)$(datadir)/tracker/miners" && \
+ $(LN_S) -f "$(DESTDIR)$(datadir)/tracker/miners/$(service_DATA)" \
+ "$(DESTDIR)$(servicedir)/$(service_DATA)"
+
uninstall-local:
- cd $(DESTDIR)$(datadir)/tracker/miners && \
- $(RM) $(DESTDIR)$(datadir)/tracker/miners/$(service_DATA)
+ $(RM) "$(DESTDIR)$(datadir)/tracker/miners/$(service_DATA)"
# Desktop files: First we fix the VERSION and libexecdir
%.desktop.in: %.desktop.in.in
diff --git a/src/plugins/evolution/Makefile.am b/src/plugins/evolution/Makefile.am
index 6b5d8ff..595613a 100644
--- a/src/plugins/evolution/Makefile.am
+++ b/src/plugins/evolution/Makefile.am
@@ -54,11 +54,12 @@ INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard
@INTLTOOL_SERVICE_RULE@
install-data-hook:
- cd $(DESTDIR)$(datadir)/tracker/miners && \
- $(LN_S) -f $(servicedir)/$(service_DATA)
+ $(MKDIR_P) "$(DESTDIR)$(datadir)/tracker/miners" && \
+ $(LN_S) -f "$(DESTDIR)$(datadir)/tracker/miners/$(service_DATA)" \
+ "$(DESTDIR)$(servicedir)/$(service_DATA)"
+
uninstall-local:
- cd $(DESTDIR)$(datadir)/tracker/miners && \
- $(RM) $(DESTDIR)$(datadir)/tracker/miners/$(service_DATA)
+ $(RM) "$(DESTDIR)$(datadir)/tracker/miners/$(service_DATA)"
# Dist / Clean rules for all data
CLEANFILES += \
diff --git a/src/tracker-extract/Makefile.am b/src/tracker-extract/Makefile.am
index b8ceaa8..6a0b58f 100644
--- a/src/tracker-extract/Makefile.am
+++ b/src/tracker-extract/Makefile.am
@@ -605,11 +605,12 @@ INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard
@INTLTOOL_SERVICE_RULE@
install-data-hook:
- cd $(DESTDIR)$(datadir)/tracker/miners && \
- $(LN_S) -f $(servicedir)/$(service_DATA)
+ $(MKDIR_P) "$(DESTDIR)$(datadir)/tracker/miners" && \
+ $(LN_S) -f "$(DESTDIR)$(datadir)/tracker/miners/$(service_DATA)" \
+ "$(DESTDIR)$(servicedir)/$(service_DATA)"
+
uninstall-local:
- cd $(DESTDIR)$(datadir)/tracker/miners && \
- $(RM) $(DESTDIR)$(datadir)/tracker/miners/$(service_DATA)
+ $(RM) "$(DESTDIR)$(datadir)/tracker/miners/$(service_DATA)"
# Desktop files: First we fix the VERSION and libexecdir
%.desktop.in: %.desktop.in.in
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]