Add make target for compiled mpy code

This commit is contained in:
xs5871 2023-02-18 18:20:15 +00:00 committed by xs5871
parent 317f6407d6
commit db2082f1c6

View File

@ -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: