diff --git a/Makefile b/Makefile
index e64264e1a50cb949bb39bdce56b1568119a61e9b..878f17f5584f9fa78c3b10a475c4e05724a57f56 100644
--- a/Makefile
+++ b/Makefile
@@ -50,7 +50,7 @@ $(PROGS): %$(EXESUF): %_g$(EXESUF)
 	cp -p $< $@
 	$(STRIP) $@
 
-SUBDIR_VARS := OBJS ASM_OBJS CPP_OBJS FFLIBS CLEANFILES
+SUBDIR_VARS := OBJS ASM_OBJS CPP_OBJS FFLIBS CLEANFILES DIRS
 
 define RESET
 $(1) :=
diff --git a/common.mak b/common.mak
index 1fbdf2b489e68a175c78b2037f338dc64a14e04e..2ec0dffd133e6f30b9aabe56816edac5266b984a 100644
--- a/common.mak
+++ b/common.mak
@@ -87,9 +87,6 @@ endef
 
 $(eval $(RULES))
 
-# Clear DIRS variable so that it is not used in other subdirectories.
-DIRS =
-
 tests: $(TESTS)
 
 -include $(DEPS)