[make] properly prefix the spotless path with BUILDROOT

Change-Id: I3cbda4c95751124252bc535a82a78bc6a6c7f8f5
This commit is contained in:
Travis Geiselbrecht
2014-08-22 14:57:58 -07:00
parent 30912e2f26
commit 896e273385

View File

@@ -1,8 +1,10 @@
LOCAL_MAKEFILE:=$(MAKEFILE_LIST)
BUILDROOT ?= .
ifeq ($(MAKECMDGOALS),spotless)
spotless:
rm -rf -- build-*
rm -rf -- "$(BUILDROOT)/build-*"
else
ifndef LKROOT
@@ -42,7 +44,6 @@ endif
DEBUG ?= 2
BUILDROOT ?= .
BUILDDIR := $(BUILDROOT)/build-$(PROJECT)
OUTBIN := $(BUILDDIR)/lk.bin
OUTELF := $(BUILDDIR)/lk.elf