From 77d4b47b8ca665b28fd39e5d7705dd5a7351985b Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Fri, 10 Oct 2008 07:53:52 +0000 Subject: - add and use EXTRA_DIRS to wipe the test/locale/C directory --- test/README | 1 + test/Rules.mak | 1 + test/Test.mak | 1 + test/locale/Makefile | 2 +- 4 files changed, 4 insertions(+), 1 deletion(-) (limited to 'test') 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 -- cgit v1.2.3