diff --git a/Makefile.common b/Makefile.common index b5d1e54b65f..a524f0b9f19 100644 --- a/Makefile.common +++ b/Makefile.common @@ -818,6 +818,8 @@ clean:: # from C/C++ source files. ########################################################################### +ifndef DISABLE_AUTO_DEPENDENCIES + # If dependencies were generated for the file that included this file, # include the dependencies now... # @@ -846,6 +848,4 @@ endif endif endif -cleandeps:: - $(VERB) rm -f $(SourceDepend) - +endif # ifndef DISABLE_AUTO_DEPENDENCIES diff --git a/Makefile.rules b/Makefile.rules index b5d1e54b65f..a524f0b9f19 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -818,6 +818,8 @@ clean:: # from C/C++ source files. ########################################################################### +ifndef DISABLE_AUTO_DEPENDENCIES + # If dependencies were generated for the file that included this file, # include the dependencies now... # @@ -846,6 +848,4 @@ endif endif endif -cleandeps:: - $(VERB) rm -f $(SourceDepend) - +endif # ifndef DISABLE_AUTO_DEPENDENCIES