[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Automake-NG] [PATCH 15/14] [ng] cleanup: remove 'clean-hdr.am'
From: |
Stefano Lattarini |
Subject: |
[Automake-NG] [PATCH 15/14] [ng] cleanup: remove 'clean-hdr.am' |
Date: |
Thu, 21 Jun 2012 21:40:06 +0200 |
It's so small and dumb that it's easier and cleaner to just inline
it in the automake script.
* lib/am/clean-hdr.am: Delete.
* Makefile.am (dist_am_DATA): Remove it.
* automake.in (handle_configure): Just add the header configs and their
stamp files to '%clean_files', instead of processing the now-removed
'clean-hdr.am' to obtain the same effect.
Signed-off-by: Stefano Lattarini <address@hidden>
---
Makefile.am | 1 -
automake.in | 9 ++-------
lib/am/clean-hdr.am | 17 -----------------
3 files changed, 2 insertions(+), 25 deletions(-)
delete mode 100644 lib/am/clean-hdr.am
diff --git a/Makefile.am b/Makefile.am
index 627a6fc..a1f402d 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -192,7 +192,6 @@ dist_am_DATA = \
lib/am/parallel-tests.am \
lib/am/check-typos.am \
lib/am/color-tests.am \
- lib/am/clean-hdr.am \
lib/am/clean.am \
lib/am/compile.am \
lib/am/configure.am \
diff --git a/automake.in b/automake.in
index f0f48db..4235d61 100644
--- a/automake.in
+++ b/automake.in
@@ -3657,7 +3657,6 @@ sub handle_configure ($$$@)
# If we have a configure header, require it.
my $hdr_index = 0;
- my @distclean_config;
foreach my $spec (@config_headers)
{
$hdr_index += 1;
@@ -3707,15 +3706,11 @@ sub handle_configure ($$$@)
CONFIG_H_PATH => $config_h_path,
STAMP => "$stamp");
- push @distclean_config, $cn_sans_dir, $stamp;
+ $clean_files{$cn_sans_dir} = DIST_CLEAN;
+ $clean_files{$stamp} = DIST_CLEAN;
}
}
- $output_rules .= file_contents ('clean-hdr',
- new Automake::Location,
- FILES => "@distclean_config")
- if @distclean_config;
-
my @config_h;
foreach my $spec (@config_headers)
{
diff --git a/lib/am/clean-hdr.am b/lib/am/clean-hdr.am
deleted file mode 100644
index b0ac222..0000000
--- a/lib/am/clean-hdr.am
+++ /dev/null
@@ -1,17 +0,0 @@
-## 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__distclean_files += %FILES%
--
1.7.9.5
- Re: [Automake-NG] [PATCH 10/14] [ng] refactoring: no "cleaning" rules in compile.am, (continued)
- [Automake-NG] [PATCH 12/14] [ng] refactor: prefer '&file_contents' over '&file_contents_internals', Stefano Lattarini, 2012/06/21
- [Automake-NG] [PATCH 14/14] [ng] check: keep cleaning of '.log' and '.trs' files near other rules, Stefano Lattarini, 2012/06/21
- [Automake-NG] [PATCH 13/14] [ng] cleanup: remove 'libtool.am', Stefano Lattarini, 2012/06/21
- [Automake-NG] [PATCH 15/14] [ng] cleanup: remove 'clean-hdr.am',
Stefano Lattarini <=
- [Automake-NG] [PATCH 16/14] [ng] clean: drop minor DOS-related cruft in libtool support, Stefano Lattarini, 2012/06/21
- [Automake-NG] [RFC] [ng] cleanup: merge '%compile_clean_files' in '%clean_files', Stefano Lattarini, 2012/06/21
- Re: [Automake-NG] [PATCH 00/14] Rework cleaning rules APIs and implementation, Stefano Lattarini, 2012/06/27