Browse Source

- add and use EXTRA_DIRS to wipe the test/locale/C directory

Bernhard Reutner-Fischer 16 years ago
parent
commit
77d4b47b8c
4 changed files with 4 additions and 1 deletions
  1. 1 0
      test/README
  2. 1 0
      test/Rules.mak
  3. 1 0
      test/Test.mak
  4. 1 1
      test/locale/Makefile

+ 1 - 0
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          := 

+ 1 - 0
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

+ 1 - 0
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

+ 1 - 1
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