summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlessandro Gatti <a.gatti@frob.it>2024-12-11 13:36:32 +0100
committerDamien George <damien@micropython.org>2024-12-23 10:03:02 +1100
commit4bf087b272856482c055a6df66ec008f2ca846d0 (patch)
treec0b2c02347cd8af1c79b8cfd5df57494f77c7889
parent1857e62fdcb9a9fb0df987b2502ed98346457a6f (diff)
py/dynruntime.mk: Delete compiled module file on clean.
This commit adds the compiled native module file to the list of files to remove when `make clean` is issued in a native module source directory. Signed-off-by: Alessandro Gatti <a.gatti@frob.it>
-rw-r--r--py/dynruntime.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/py/dynruntime.mk b/py/dynruntime.mk
index 71679954e..68d5e2e26 100644
--- a/py/dynruntime.mk
+++ b/py/dynruntime.mk
@@ -38,6 +38,8 @@ MPY_CROSS_FLAGS += -march=$(ARCH)
SRC_O += $(addprefix $(BUILD)/, $(patsubst %.c,%.o,$(filter %.c,$(SRC))) $(patsubst %.S,%.o,$(filter %.S,$(SRC))))
SRC_MPY += $(addprefix $(BUILD)/, $(patsubst %.py,%.mpy,$(filter %.py,$(SRC))))
+CLEAN_EXTRA += $(MOD).mpy
+
################################################################################
# Architecture configuration