]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - Makerules
Regenerate libc.pot
[thirdparty/glibc.git] / Makerules
index 31064470e52c8393d8a52d811cec117ba4a56af2..018780c818cab0d4626e31308f013582114fca4f 100644 (file)
--- a/Makerules
+++ b/Makerules
@@ -200,7 +200,7 @@ endif
 ifndef subdir
 # If a makefile needs to do something conditional on something that
 # can only be figured out from headers, write a FOO.make.c input
-# file that uses cpp contructs and contains @@@ LINE @@@ for each LINE
+# file that uses cpp constructs and contains @@@ LINE @@@ for each LINE
 # to emit in the generated makefile, and use -include $(common-objpfx)FOO.make.
 #
 # We only generate these in the top-level makefile, to avoid any weirdness
@@ -1334,18 +1334,13 @@ echo-headers:
 clean: common-clean
 mostlyclean: common-mostlyclean
 
+# Remove test artifacts from a given directory
 do-tests-clean:
-       -rm -f $(addprefix $(objpfx),$(addsuffix .out,$(tests) \
-                                                     $(tests-internal) \
-                                                     $(xtests) \
-                                                     $(test-srcs)) \
-                                    $(addsuffix .test-result,$(tests) \
-                                                             $(tests-internal) \
-                                                             $(xtests) \
-                                                             $(test-srcs)))
+       -find $(objpfx) -name '*.out' -delete
+       -find $(objpfx) -name '*.test-result' -delete
 
 # Remove the object files.
-common-mostlyclean:
+common-mostlyclean: do-tests-clean
        -rm -f $(addprefix $(objpfx),$(tests) $(tests-internal) $(xtests) \
                                     $(test-srcs) \
                                     $(others) $(sysdep-others) stubs \
@@ -1354,15 +1349,7 @@ common-mostlyclean:
                                                    $(xtests) \
                                                    $(test-srcs) \
                                                    $(others) \
-                                                   $(sysdep-others)) \
-                                    $(addsuffix .out,$(tests) \
-                                                     $(tests-internal) \
-                                                     $(xtests) \
-                                                     $(test-srcs)) \
-                                    $(addsuffix .test-result,$(tests) \
-                                                             $(tests-internal) \
-                                                             $(xtests) \
-                                                             $(test-srcs)))
+                                                   $(sysdep-others)))
        -rm -f $(addprefix $(objpfx),$(extra-objs) $(extra-test-objs) \
                                     $(install-lib) $(install-lib.so) \
                                     $(install-lib.so:%.so=%_pic.a))