Merge "pdk: fix build error on mac"
diff --git a/core/pdk_config.mk b/core/pdk_config.mk
index 28c01f3..afa5b74 100644
--- a/core/pdk_config.mk
+++ b/core/pdk_config.mk
@@ -110,6 +110,7 @@
 # Copy with the last-modified time preserved, never follow symbolic links.
 $(PRODUCT_OUT)/% : $(_pdk_fusion_intermediates)/% $(_pdk_fusion_stamp)
 	@mkdir -p $(dir $@)
+	$(hide) rm -rf $@
 	$(hide) cp -fpPR $< $@
 
 ifeq (true,$(TARGET_BUILD_PDK_JAVA_PLATFORM))