From a70f82cf74a62f4774182f97c01fbb0225d87943 Mon Sep 17 00:00:00 2001 From: Daniel Thompson Date: Sat, 1 Feb 2020 13:40:19 +0000 Subject: Makefile: Allow BOARD to come from the environment diff --git a/Makefile b/Makefile index c990d14..ffed1fa 100644 --- a/Makefile +++ b/Makefile @@ -2,10 +2,10 @@ export PYTHONPATH := $(PWD)/tools/nrfutil:$(PWD)/tools/intelhex:$(PYTHONPATH) all : bootloader micropython -BOARD=$(error Please set BOARD=) +BOARD ?= $(error Please set BOARD=) clean : - rm -rf \ + $(RM) -r \ bootloader/_build-$(BOARD)_nrf52832 \ micropython/mpy-cross/build \ micropython/ports/nrf/build-$(BOARD)-s132 -- cgit v0.10.2