This patch makes it easier to distribute a library that was built by Makefile rules generated by Makefile.am. Previously you had to write
lib_LTLIBRARIES = libgnurepacked.la libgnurepacked_la_LIBADD = libgnu.la Now you can write directly lib_LTLIBRARIES = libgnu.la Bruno 2009-04-05 Bruno Haible <br...@clisp.org> * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to noinst_LTLIBRARIES if the Makefile.am in the same directory specifies that it should be installed. *** gnulib-tool.orig 2009-04-05 22:41:52.000000000 +0200 --- gnulib-tool 2009-04-05 22:41:47.000000000 +0200 *************** *** 2047,2055 **** echo "AM_CFLAGS =" fi echo ! if LC_ALL=C grep "^[a-zA-Z0-9_]*_${perhapsLT}LIBRARIES *+\{0,1\}= *$libname\\.$libext\$" allsnippets.tmp > /dev/null; then ! # One of the snippets already specifies an installation location for the ! # library. Don't confuse automake by saying it should not be installed. : else # By default, the generated library should not be installed. --- 2047,2060 ---- echo "AM_CFLAGS =" fi echo ! if LC_ALL=C grep "^[a-zA-Z0-9_]*_${perhapsLT}LIBRARIES *+\{0,1\}= *$libname\\.$libext\$" allsnippets.tmp > /dev/null \ ! || { test -n "$makefile_name" \ ! && test -f "$sourcebase/Makefile.am" \ ! && LC_ALL=C grep "^[a-zA-Z0-9_]*_${perhapsLT}LIBRARIES *+\{0,1\}= *$libname\\.$libext\$" "$sourcebase/Makefile.am" > /dev/null; \ ! }; then ! # One of the snippets or the user's Makefile.am already specifies an ! # installation location for the library. Don't confuse automake by saying ! # it should not be installed. : else # By default, the generated library should not be installed.