@@ -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 :=
@@ -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
@@ -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
@@ -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