From db2082f1c6788427c82ebe0cb009b925188c9fa8 Mon Sep 17 00:00:00 2001 From: xs5871 <xs5871@qn-4.net> Date: Sat, 18 Feb 2023 18:20:15 +0000 Subject: [PATCH] Add make target for compiled mpy code --- Makefile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Makefile b/Makefile index 4785edf..c4fe26d 100644 --- a/Makefile +++ b/Makefile @@ -109,6 +109,16 @@ $(MOUNTPOINT)/kmk/.copied: $(shell find kmk/ -name "*.py" | xargs -0) @touch $(MOUNTPOINT)/kmk/.copied @sync +ifdef MOUNTPOINT +copy-compiled: + @echo "===> Copying compiled KMK folder" + @rsync -urh $(MPY_TARGET_DIR)/* $(MOUNTPOINT)/ + @sync +else +copy-compiled: + @echo "**** MOUNTPOINT must be defined (wherever your CIRCUITPY drive is mounted) ****" && exit 1 +endif + copy-kmk: $(MOUNTPOINT)/kmk/.copied else copy-kmk: