summaryrefslogtreecommitdiff
path: root/py
diff options
context:
space:
mode:
Diffstat (limited to 'py')
-rw-r--r--py/mkrules.cmake10
1 files changed, 10 insertions, 0 deletions
diff --git a/py/mkrules.cmake b/py/mkrules.cmake
index 27d8b24f6..e3d769cc5 100644
--- a/py/mkrules.cmake
+++ b/py/mkrules.cmake
@@ -100,6 +100,12 @@ if(MICROPY_ROM_TEXT_COMPRESSION)
)
endif()
+# Ensure genhdr directory is removed on clean
+
+set_property(TARGET ${MICROPY_TARGET} APPEND PROPERTY ADDITIONAL_CLEAN_FILES
+ "${MICROPY_GENHDR_DIR}"
+)
+
# Command to force the build of another command
# Generate mpversion.h
@@ -244,6 +250,10 @@ add_custom_command(
if(MICROPY_FROZEN_MANIFEST)
set(MICROPY_FROZEN_CONTENT "${CMAKE_BINARY_DIR}/frozen_content.c")
+ set_property(TARGET ${MICROPY_TARGET} APPEND PROPERTY ADDITIONAL_CLEAN_FILES
+ "${CMAKE_BINARY_DIR}/frozen_mpy"
+ )
+
target_sources(${MICROPY_TARGET} PRIVATE
${MICROPY_FROZEN_CONTENT}
)