[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Automake-NG] [PATCH 14/14] [ng] check: keep cleaning of '.log' and '.tr
From: |
Stefano Lattarini |
Subject: |
[Automake-NG] [PATCH 14/14] [ng] check: keep cleaning of '.log' and '.trs' files near other rules |
Date: |
Thu, 21 Jun 2012 12:32:45 +0200 |
* lib/am/parallel-tests.am: Add $(am__test_results), $(am__test_logs)
and $(TEST_SUITE_LOGS) to the list of files removed by "make mostlyclean"
here ...
* automake.in (handle_tests): ... rather than here.
Signed-off-by: Stefano Lattarini <address@hidden>
---
automake.in | 3 ---
lib/am/parallel-tests.am | 4 ++++
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/automake.in b/automake.in
index a67a763..2330fd4 100644
--- a/automake.in
+++ b/automake.in
@@ -4155,9 +4155,6 @@ sub handle_tests
file_contents ('parallel-tests', new Automake::Location,
COLOR => !! option 'color-tests',
CHECK_DEPS => "@check");
- $clean_files{'$(am__test_logs)'} = MOSTLY_CLEAN;
- $clean_files{'$(am__test_results)'} = MOSTLY_CLEAN;
- $clean_files{'$(TEST_SUITE_LOG)'} = MOSTLY_CLEAN;
}
}
}
diff --git a/lib/am/parallel-tests.am b/lib/am/parallel-tests.am
index 8f4c0f9..e030c87 100644
--- a/lib/am/parallel-tests.am
+++ b/lib/am/parallel-tests.am
@@ -256,6 +256,8 @@ am__test_results = \
am__test_logs = \
$(call am__memoize,am__test_logs,$(addsuffix .log,$(strip
$(am__test_bases))))
+am__mostlyclean_files += $(am__test_results) $(am__test_logs)
+
# $(TEST_LOGS) is a published interface.
TEST_LOGS = $(am__test_logs)
@@ -377,6 +379,8 @@ $(TEST_SUITE_LOG): $(am__test_logs) $(am__test_results)
fi; \
$$success || exit 1
+am__mostlyclean_files += $(TEST_SUITE_LOG)
+
## ------------------------------------------ ##
## Running all tests, or rechecking failures. ##
## ------------------------------------------ ##
--
1.7.9.5
- Re: [Automake-NG] [PATCH 09/14] [ng] clean: don't remove object files in '.' unconditionally, (continued)
- [Automake-NG] [PATCH 07/14] [ng] refactoring: move definition of $(am__mv) in depend2.am, Stefano Lattarini, 2012/06/21
- [Automake-NG] [PATCH 10/14] [ng] refactoring: no "cleaning" rules in compile.am, Stefano Lattarini, 2012/06/21
- [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 <=
- [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, 2012/06/21
- [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