From 6ab4154ad5de9b4766c83f7b7b718be2aff50eda Mon Sep 17 00:00:00 2001 From: xs5871 Date: Sat, 18 Feb 2023 18:24:19 +0000 Subject: [PATCH] Make copy-board target copy all BOARD/.*py files --- Makefile | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index c4fe26d..14d77f7 100644 --- a/Makefile +++ b/Makefile @@ -125,11 +125,15 @@ copy-kmk: echo "**** MOUNTPOINT must be defined (wherever your CIRCUITPY drive is mounted) ****" && exit 1 endif -copy-board: $(MOUNTPOINT)/kb.py -$(MOUNTPOINT)/kb.py: $(BOARD) - @echo "===> Copying your board to kb.py" - @rsync -rh $(BOARD) $@ +ifdef MOUNTPOINT +copy-board: + @echo "===> Copying your board to $(MOUNTPOINT)" + @rsync -urh $(BOARD)/*.py $(MOUNTPOINT)/ @sync +else +copy-board: + @echo "**** MOUNTPOINT must be defined (wherever your CIRCUITPY drive is mounted) ****" && exit 1 +endif ifdef MOUNTPOINT $(MOUNTPOINT)/kmk/boot.py: boot.py @@ -159,8 +163,4 @@ else copy-keymap: echo "**** MOUNTPOINT must be defined (wherever your CIRCUITPY drive is mounted) ****" && exit 1 -ifdef BOARD -copy-board: $(MOUNTPOINT)/kb.py -endif # BOARD - endif # MOUNTPOINT