* automake.in (generate_makefile): Move the hack necessary to make the
installation of libtool libraries and binaries dependent on them work
"on degenerate systems even with make -j" (according to the comments of
the original authors :-) from here ...
* lib/am/install.am: ... to here, with improved comments.
For the origin of the hack we are moving around here, refer to commit
bd4a1d5 of 2000-10-19, "* automake.in (handle_merge_targets): Allow
parallel install with forced relink".
Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
# Special targets "all" and "check".
handle_all_and_check;
- # FIXME: Gross!
- if (var ('lib_LTLIBRARIES') && var ('bin_PROGRAMS'))
- {
- $output_rules .= "install-binPROGRAMS: install-libLTLIBRARIES\n\n";
- }
- if (var ('nobase_lib_LTLIBRARIES') && var ('bin_PROGRAMS'))
- {
- $output_rules .= "install-binPROGRAMS: install-nobase_libLTLIBRARIES\n\n";
- }
-
almost_verbatim ('install');
handle_clean ($makefile);
handle_factored_dependencies;
INSTALL_STRIP_FLAG=-s \
$(if $(STRIP),"INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'") \
install
+
+# Allow parallel install with forced relink. See commit Automake bd4a1d5
+# of 2000-10-19 for a little more background.
+# FIXME: this is gross, and is debatable how useful and/or needed this
+# workaround still is today. This is something that should be eventually
+# discussed with the Libtool guys.
+ifdef bin_PROGRAMS
+ ifdef lib_LTLIBRARIES
+ install-binPROGRAMS: install-libLTLIBRARIES
+ endif
+ ifdef nobase_lib_LTLIBRARIES
+ install-binPROGRAMS: install-nobase_libLTLIBRARIES
+ endif
+endif