require_conf_file_with_macro (TRUE, 'LIBTOOL', FOREIGN, @libtool_files)
if $relative_dir eq '.' && ! $libtool_new_api;
- # .libs is for Unix, _libs for DOS.
- my @libtool_clean_directories = map { ("$_/.libs", "$_/_libs") }
- (sort keys %libtool_clean_directories);
check_user_variables 'LIBTOOLFLAGS';
- # Output the libtool compilation rules.
- # FIXME: actually, this only output the libtool cleaning rules ...
- # FIXME: some code reorganization/refactoring is probably in order.
- $output_rules .= &file_contents (
- 'libtool', new Automake::Location,
- 'LIBTOOL-CLEAN-DIRECTORIES' => "@libtool_clean_directories");
+ foreach my $dir (%libtool_clean_directories)
+ {
+ # '.libs' is for Unix, '_libs' for DOS.
+ $clean_dirs{"$dir/.libs"} = CLEAN;
+ $clean_dirs{"$dir/_libs"} = CLEAN;
+ }
+
+ if ($relative_dir eq '.')
+ {
+ $clean_files{"libtool"} = DIST_CLEAN;
+ $clean_files{"config.lt"} = DIST_CLEAN;
+ }
}
# handle_programs ()
+++ /dev/null
-## automake - create Makefile.in from Makefile.am
-## Copyright (C) 1994-2012 Free Software Foundation, Inc.
-
-## This program 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 2, or (at your option)
-## any later version.
-
-## This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
-
-am__clean_dirs += %LIBTOOL-CLEAN-DIRECTORIES%
-
-?TOPDIR_P?am__distclean_files += libtool config.lt