]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
* automake.in (handle_programs): Also clean .libs/_libs
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Thu, 16 Aug 2007 23:47:12 +0000 (23:47 +0000)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Thu, 16 Aug 2007 23:47:12 +0000 (23:47 +0000)
directory for _PROGRAMS.
* tests/libtoo10.test: New test.
* tests/Makefile.am: Update.
* THANKS: Update.
Report by Guillermo Ontañón.

ChangeLog
THANKS
automake.in
tests/Makefile.am
tests/Makefile.in
tests/libtoo10.test [new file with mode: 0755]

index e3d17d245678ddee3cabc3406991f0dce248adfc..596ac30af0cd1d9a334b486fa39fe3c029005af8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2007-08-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       * automake.in (handle_programs): Also clean .libs/_libs
+       directory for _PROGRAMS.
+       * tests/libtoo10.test: New test.
+       * tests/Makefile.am: Update.
+       * THANKS: Update.
+       Report by Guillermo Ontañón.
+
 2007-08-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
        * configure.ac: Actually require version 2.60 in the test for
diff --git a/THANKS b/THANKS
index 1344bdf61ab1078479adf0e00fd3dd6f13c34855..3f0ef70842696b8c1c48c5016d94f4a561218ace 100644 (file)
--- a/THANKS
+++ b/THANKS
@@ -102,14 +102,15 @@ Gordon Sadler             gbsadler1@lcisp.com
 Greg A. Woods          woods@most.weird.com
 Greg Schafer           gschafer@zip.com.au
 Guido Draheim          guidod@gmx.de
+Guillermo Ontañón    gontanonext@pandasoftware.es
 Gustavo Carneiro       gjc@inescporto.pt
-Gwenole Beauchesne      gbeauchesne@mandrakesoft.com
+Gwenole Beauchesne     gbeauchesne@mandrakesoft.com
 H.J. Lu                        hjl@lucon.org
 H.Merijn Brand         h.m.brand@hccnet.nl
 Hans Ulrich Niedermann hun@n-dimensional.de
 Harald Dunkel          harald@CoWare.com
 Harlan Stenn           Harlan.Stenn@pfcs.com
-He Li                          tippa000@yahoo.com
+He Li                  tippa000@yahoo.com
 Henrik Frystyk Nielsen frystyk@w3.org
 Ian Lance Taylor       ian@cygnus.com
 Imacat                 imacat@mail.imacat.idv.tw
@@ -178,7 +179,7 @@ Mark Mitchell               mark@codesourcery.com
 Mark Phillips          msp@nortelnetworks.com
 Markku Rossi           mtr@ngs.fi
 Markus F.X.J. Oberhumer        k3040e4@wildsau.idv-edu.uni-linz.ac.at
-Martin Bravenboer       martin@cs.uu.nl
+Martin Bravenboer      martin@cs.uu.nl
 Martin Frydl           martin@idoox.com
 Martin Waitz           tali@admingilde.org
 Mathias Doreille       doreille@smr.ch
@@ -230,7 +231,7 @@ Pavel Roskin                pavel_roskin@geocities.com
 Per Bothner            bothner@cygnus.com
 Per Cederqvist         ceder@lysator.liu.se
 Per Oyvind Hvidsten    poeh@enter.vg
-Peter Breitenlohner     peb@mppmu.mpg.de
+Peter Breitenlohner    peb@mppmu.mpg.de
 Peter Eisentraut       peter_e@gmx.net
 Peter Gavin            pgavin@debaser.kicks-ass.org
 Peter Mattis           petm@scam.XCF.Berkeley.EDU
index 9bfff454a3781f1602ec225683defb1a40db735c..d7e48a1a4e01ab220f38b2cd1e9ef4286230ddc3 100755 (executable)
@@ -2485,6 +2485,8 @@ sub handle_programs
       # make sure this directory will exist.
       my $dirstamp = require_build_directory_maybe ($one_file);
 
+      $libtool_clean_directories{dirname ($one_file)} = 1;
+
       $output_rules .= &file_contents ('program',
                                       $where,
                                       PROGRAM  => $one_file,
index 7dbdc390b522cad33548f9150c28738314b19b83..ee3534563bfcb1e5889aee5da8fe2e9ebe396865 100644 (file)
@@ -332,6 +332,7 @@ libtool6.test \
 libtool7.test \
 libtool8.test \
 libtool9.test \
+libtoo10.test \
 license.test \
 link_c_cxx.test        \
 link_dist.test \
index 0fb651e47c44f9388945139f821bce3a83703b59..52a125a944bfae07e34df75fe7e266915c3cb912 100644 (file)
@@ -465,6 +465,7 @@ libtool6.test \
 libtool7.test \
 libtool8.test \
 libtool9.test \
+libtoo10.test \
 license.test \
 link_c_cxx.test        \
 link_dist.test \
diff --git a/tests/libtoo10.test b/tests/libtoo10.test
new file mode 100755 (executable)
index 0000000..7c0faf9
--- /dev/null
@@ -0,0 +1,63 @@
+#! /bin/sh
+# Copyright (C) 2007  Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with Automake; see the file COPYING.  If not, write to
+# the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+# Boston, MA 02110-1301, USA.
+
+# Make sure .libs directories are removed for _PROGRAMS.
+# Report from Guillermo Ontañón.
+
+required=libtoolize
+. ./defs || exit 1
+set -e
+
+cat >> configure.in << 'END'
+AC_PROG_LIBTOOL
+AC_OUTPUT
+END
+
+cat > Makefile.am << 'END'
+lib_LTLIBRARIES = lib/libfoo.la
+lib_libfoo_la_SOURCES = foo.c
+bin_PROGRAMS = src/main
+check_PROGRAMS = check/test
+src_main_SOURCES = main.c
+check_test_SOURCES = main.c
+LDADD = lib/libfoo.la
+END
+
+mkdir lib src check
+cat > foo.c << 'END'
+int foo () { return 0; }
+END
+
+cat > main.c << 'END'
+extern int foo ();
+int main () { return foo (); }
+END
+
+libtoolize
+$ACLOCAL
+$AUTOMAKE --add-missing
+$AUTOCONF
+./configure
+$MAKE all check clean
+test ! -d src/.libs
+test ! -d src/_libs
+test ! -d check/.libs
+test ! -d check/_libs
+$MAKE distcheck