Add make target for compiled mpy code
This commit is contained in:
parent
317f6407d6
commit
db2082f1c6
10
Makefile
10
Makefile
@ -109,6 +109,16 @@ $(MOUNTPOINT)/kmk/.copied: $(shell find kmk/ -name "*.py" | xargs -0)
|
|||||||
@touch $(MOUNTPOINT)/kmk/.copied
|
@touch $(MOUNTPOINT)/kmk/.copied
|
||||||
@sync
|
@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
|
copy-kmk: $(MOUNTPOINT)/kmk/.copied
|
||||||
else
|
else
|
||||||
copy-kmk:
|
copy-kmk:
|
||||||
|
Loading…
Reference in New Issue
Block a user