[gitg] Add hack to fix parallel install



commit 21fb208f8cc472836aa5fe425d8f5561a48ba008
Author: Jesse van den Kieboom <jessevdk gmail com>
Date:   Thu Jan 9 20:00:40 2014 +0100

    Add hack to fix parallel install
    
    libtool needs to relink at install (on some platforms) which requires
    dependency libraries to be already installed. automake does not
    generate the appropriate dependency so we do it here automatically. As
    an additional bonus, we have to trick automake using a variable
    indirection for the rule because it would otherwise omit the default
    install rule.

 libgitg-ext/Makefile.am   |    9 +++++++++
 plugins/diff/Makefile.am  |    9 +++++++++
 plugins/files/Makefile.am |    9 +++++++++
 3 files changed, 27 insertions(+), 0 deletions(-)
---
diff --git a/libgitg-ext/Makefile.am b/libgitg-ext/Makefile.am
index 223e1e6..8f09138 100644
--- a/libgitg-ext/Makefile.am
+++ b/libgitg-ext/Makefile.am
@@ -114,4 +114,13 @@ EXTRA_DIST +=                                                              \
        $(libgitg_ext_libgitg_ext_1_0_la_gir_DATA)                      \
        $(libgitg_ext_resources_deps)
 
+# This is a hack to make parallel install work. libtool needs to relink at
+# install (on some platforms) which requires dependency libraries to be
+# already installed. automake does not generate the appropriate dependency
+# so we do it here automatically. As an additional bonus, we have to trick
+# automake using a variable indirection for the rule because it would otherwise
+# omit the default install rule.
+install_libgitg_extexecLTLIBRARIES = install-libgitg_extexecLTLIBRARIES
+$(install_libgitg_extexecLTLIBRARIES): install-libgitgexecLTLIBRARIES
+
 # vi:ts=8:noet
diff --git a/plugins/diff/Makefile.am b/plugins/diff/Makefile.am
index 69e69a9..3855fc6 100644
--- a/plugins/diff/Makefile.am
+++ b/plugins/diff/Makefile.am
@@ -48,4 +48,13 @@ EXTRA_DIST +=                                                \
 
 SCALABLE_ICONS += plugins/diff/icons/diff-symbolic.svg
 
+# This is a hack to make parallel install work. libtool needs to relink at
+# install (on some platforms) which requires dependency libraries to be
+# already installed. automake does not generate the appropriate dependency
+# so we do it here automatically. As an additional bonus, we have to trick
+# automake using a variable indirection for the rule because it would otherwise
+# omit the default install rule.
+install_plugins_diff_libdiff_la_pluginexecLTLIBRARIES = install-plugins_diff_libdiff_la_pluginexecLTLIBRARIES
+$(install_plugins_diff_libdiff_la_pluginexecLTLIBRARIES): install-libgitg_extexecLTLIBRARIES
+
 # vi:ts=8:noet
diff --git a/plugins/files/Makefile.am b/plugins/files/Makefile.am
index 6c4462f..466d1ab 100644
--- a/plugins/files/Makefile.am
+++ b/plugins/files/Makefile.am
@@ -47,4 +47,13 @@ EXTRA_DIST +=                                                        \
        $(plugins_files_libfiles_la_plugindata_DATA)            \
        $(plugins_files_libfiles_resources_deps)
 
+# This is a hack to make parallel install work. libtool needs to relink at
+# install (on some platforms) which requires dependency libraries to be
+# already installed. automake does not generate the appropriate dependency
+# so we do it here automatically. As an additional bonus, we have to trick
+# automake using a variable indirection for the rule because it would otherwise
+# omit the default install rule.
+install_plugins_files_libfiles_la_pluginexecLTLIBRARIES = 
install-plugins_files_libfiles_la_pluginexecLTLIBRARIES
+$(install_plugins_files_libfiles_la_pluginexecLTLIBRARIES): install-libgitg_extexecLTLIBRARIES
+
 # vi:ts=8:noet


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