summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/README1
-rw-r--r--test/Rules.mak1
-rw-r--r--test/Test.mak1
-rw-r--r--test/locale/Makefile2
4 files changed, 4 insertions, 1 deletions
diff --git a/test/README b/test/README
index b59945c54..2bc92ab4b 100644
--- a/test/README
+++ b/test/README
@@ -57,6 +57,7 @@ WRAPPER_foo := execute stuff just before test
Or to control all tests in a subdir:
EXTRA_CLEAN := extra files to remove in the clean target
+EXTRA_DIRS := extra directories to remove in the clean target
EXTRA_CFLAGS := -DFOO
EXTRA_LDFLAGS := -lpthread
OPTS :=
diff --git a/test/Rules.mak b/test/Rules.mak
index b74d941b6..d188a9175 100644
--- a/test/Rules.mak
+++ b/test/Rules.mak
@@ -58,6 +58,7 @@ export TARGET_ARCH
CROSS = $(subst ",, $(strip $(CROSS_COMPILER_PREFIX)))
CC = $(CROSS)gcc
RM = rm -f
+RM_R = $(RM) -r
# Select the compiler needed to build binaries for your development system
HOSTCC = gcc
diff --git a/test/Test.mak b/test/Test.mak
index e0200db81..43c35d234 100644
--- a/test/Test.mak
+++ b/test/Test.mak
@@ -112,5 +112,6 @@ shell_%:
clean:
$(showclean)
$(Q)$(RM) *.a *.o *.so *~ core *.out *.gdb $(CLEAN_TARGETS) $(EXTRA_CLEAN)
+ $(Q)$(RM_R) $(EXTRA_DIRS)
.PHONY: all check clean test run compile
diff --git a/test/locale/Makefile b/test/locale/Makefile
index 0ab07f7aa..7e408b8cf 100644
--- a/test/locale/Makefile
+++ b/test/locale/Makefile
@@ -28,4 +28,4 @@ OPTS_dump-ctype = C
OPTS_tst-ctype = < tst-ctype-de_DE.ISO-8859-1.in
OPTS_tst-langinfo = < tst-langinfo.input
-EXTRA_CLEAN := C
+EXTRA_DIRS := C