Dont' write out the clean_steps.mk if

If this is mm/mmm and there is no pre-existing clean_steps.mk.
Otherwise, the build system will run almost all the clean steps in the
sourcet tree if you do a full build next.

Change-Id: I5fe1e99c4f09629e4455319ea664cfba4ac634ea
diff --git a/core/cleanbuild.mk b/core/cleanbuild.mk
index c17902d..b6b95af 100644
--- a/core/cleanbuild.mk
+++ b/core/cleanbuild.mk
@@ -88,7 +88,8 @@
 CURRENT_CLEAN_STEPS :=
 
 # Write the new state to the file.
-#
+# Don't write the file if we are running mm/mmm but without a preexisting clean_steps_file.
+ifneq (,$(wildcard $(clean_steps_file))$(filter ||,|$(ONE_SHOT_MAKEFILE)|))
 $(shell \
   mkdir -p $(dir $(clean_steps_file)) && \
   echo "CURRENT_CLEAN_BUILD_VERSION := $(INTERNAL_CLEAN_BUILD_VERSION)" > \
@@ -96,6 +97,7 @@
   echo "CURRENT_CLEAN_STEPS := $(INTERNAL_CLEAN_STEPS)" >> \
       $(clean_steps_file) \
  )
+endif
 
 clean_steps_file :=
 INTERNAL_CLEAN_STEPS :=