about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 335155ce3c..fae71aa287 100644
--- a/Makefile
+++ b/Makefile
@@ -691,6 +691,6 @@ iconvdata/% localedata/% po/%: FORCE
 .PHONY: test
 test :
 	@-rm -f $(objpfx)$t.out
-	$(MAKE) subdir=$(dir $t) -C $(dir $t) ..=../ $(objpfx)$t.out
+	$(MAKE) subdir=$(patsubst %/,%,$(dir $t)) -C $(dir $t) ..=../ $(objpfx)$t.out
 	@cat $(objpfx)$t.test-result
 	@cat $(objpfx)$t.out