aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2023-06-15 15:25:47 +0000
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2023-06-26 10:37:25 -0300
commit7c507f4473911a13273ac535b02fd55edc8e19f9 (patch)
tree3b32dd70aeca9e9f7945206b7a9d80fa78f234b9 /Makefile
parent9a17a193b4ea5730aed0b9e532ae741418dd10d3 (diff)
downloadglibc-7c507f4473911a13273ac535b02fd55edc8e19f9.zip
glibc-7c507f4473911a13273ac535b02fd55edc8e19f9.tar.gz
glibc-7c507f4473911a13273ac535b02fd55edc8e19f9.tar.bz2
Fix tests-clean Makefile target (bug 30545)
This patch improves tests-clean Makefile target to reliably clean test artifacts from a build directory. Before this patch tests-clean missed around 3k (out of total 9k) .out and .test-result files. Signed-off-by: Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org> Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org> Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 523efd4..f324df7 100644
--- a/Makefile
+++ b/Makefile
@@ -518,7 +518,10 @@ mostlyclean: parent-mostlyclean
@$(MAKE) subdir_mostlyclean no_deps=t
-rm -f $(postclean)
-tests-clean:
+# Remove test artifacts from the whole glibc build.
+# do-tests-clean removes test artifacts from top-level directory, and
+# subdir_testclean removes them from individual sub-directories.
+tests-clean: do-tests-clean
@$(MAKE) subdir_testclean no_deps=t
ifneq (,$(CXX))