microbit-samples/Makefile

21 lines
406 B
Makefile
Raw Normal View History

all: build
VERSION := $(shell yt --version 2> /dev/null)
check:
2022-09-07 05:50:07 +00:00
ifeq ($(VERSION),)
@echo you should use before trying anything: source /sync/Module_Dev_App_Mobile/yotta/bin/activate
@false
endif
build: check
@yt build
install: check
2022-07-08 16:59:06 +00:00
@cp build/bbc-microbit-classic-gcc/source/microbit-samples-combined.hex /media/$USER/MICROBIT/
@echo "Install done"
clean: check
@yt clean
2022-07-08 16:59:06 +00:00
@echo "Cleaning done"