diff --git a/Makefile b/Makefile index 44fd62f148..b40574b75a 100644 --- a/Makefile +++ b/Makefile @@ -101,6 +101,9 @@ ifneq ($(MAKECMDGOALS),) ifneq ($(filter %config distclean,$(MAKECMDGOALS)),) NOCOMPILE:=1 endif +ifeq ($(MAKECMDGOALS), distclean) +NOMKDIR:=1 +endif endif ifeq ($(NOCOMPILE),1)