2008-09-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+ Enhance cleaning of programs in libtool mode.
+ * lib/am/progs.am (clean-%DIR%PROGRAMS) [?LIBTOOL?]: Fork less
+ often, avoid removing programs twice if $(EXEEXT) is empty.
+ * tests/nobase-libtool.test: Also test PROGRAMS, in order to
+ exercise the code path.
+ * THANKS: Update.
+ Report by Toralf Förster.
+
+2008-09-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Jim Meyering <jim@meyering.net>
Reliable multi-file install for man pages.
* tests/libtoo10.test: New test.
* tests/Makefile.am: Update.
* THANKS: Update.
- Report by Guillermo Ontañón.
+ Report by Guillermo Ontañón.
2007-08-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* automake.in (handle_compile): Use subst, for maintainer-check.
-2006-10-09 Andreas Köhler <andi5.py@gmx.net> (tiny change)
+2006-10-09 Andreas Köhler <andi5.py@gmx.net> (tiny change)
For PR automake/505:
* lib/am/configure.am (am__CONFIG_DISTCLEAN_FILES):
Thomas Morgan tmorgan@pobox.com
Thomas Schwinge tschwinge@gnu.org
Thomas Tanner tanner@ffii.org
+Toralf Förster toralf.foerster@gmx.de
Tim Goodwin tjg@star.le.ac.uk
Tim Mooney mooney@dogbert.cc.ndsu.NoDak.edu
Tim Van Holder tim.van.holder@pandora.be
## Cleaning the `_libs/' or `.libs/' directory is done from clean-libtool.
## FIXME: In the future (i.e., when it works) it would be nice to delegate
## this task to `libtool --mode=clean'.
-?LIBTOOL? @list='$(%DIR%_PROGRAMS)'; for p in $$list; do \
-?LIBTOOL? f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
-?LIBTOOL? echo " rm -f $$p $$f"; \
-?LIBTOOL? rm -f $$p $$f ; \
-?LIBTOOL? done
+?LIBTOOL? @list='$(%DIR%_PROGRAMS)'; test -n "$$list" || exit 0; \
+?LIBTOOL? echo " rm -f" $$list; \
+?LIBTOOL? rm -f $$list || exit $$?; \
+?LIBTOOL? test -n "$(EXEEXT)" || exit 0; \
+?LIBTOOL? list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
+?LIBTOOL? echo " rm -f" $$list; \
+?LIBTOOL? rm -f $$list
## ---------- ##
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Make sure nobase_* works for libtool libraries as well.
+# Make sure nobase_* works for libtool libraries and programs as well.
# This is just the libtool equivalent of nobase.test, split
# up for greater exposure of nobase.test.
fooexecdir = $(prefix)/foo
fooexec_LTLIBRARIES = sub/libbase.la
nobase_fooexec_LTLIBRARIES = sub/libnobase.la
+fooexec_PROGRAMS = sub/base
+nobase_fooexec_PROGRAMS = sub/nobase
sub_libbase_la_SOURCES = source2.c
sub_libnobase_la_SOURCES = source2.c
+sub_base_SOURCES = source.c
+sub_nobase_SOURCES = source.c
test-install-data: install-data
test ! -f inst/foo/sub/libnobase.la
mkdir sub
-cat >source2.c <<'EOF'
+cat >source.c <<'EOF'
int
main (int argc, char *argv[])
{
return 0;
}
EOF
+cp source.c source2.c
rm -f install-sh