From dfe3032f4d35897dce3dfcb61a907b6a7cc624db Mon Sep 17 00:00:00 2001 From: Tim Crawford Date: Tue, 7 Apr 2020 11:34:35 -0600 Subject: [PATCH] make: Move clean target above BOARD check --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 59fc0e3..ccdbb87 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,9 @@ -include config.mk +# Target to remove build artifacts +clean: + rm -rf build + # Parameter for current board ifeq ($(BOARD),) $(info $(shell echo Please set BOARD to one of the following)) @@ -19,10 +23,6 @@ BUILD=build/$(BOARD)/$(VERSION) all: $(BUILD)/ec.rom $(info Built '$(VERSION)' for '$(BOARD)') -# Target to remove build artifacts -clean: - rm -rf build - # Include common source COMMON_DIR=src/common SRC=$(wildcard $(COMMON_DIR)/*.c)