From 31eac1b7876c55ca7748528f2f3af28cb38cd89e Mon Sep 17 00:00:00 2001 From: Karl Palsson Date: Thu, 1 Dec 2016 15:56:51 +0000 Subject: [PATCH] makefile: make it easier to disable targets. Sometimes you're working on a subset of targets, and want to do full clean/builds, but don't need to clean and rebuild families you're not working with. This is a pure syntactic change that makes it easier to simply comment out lines for targets, instead of having to mangle line continuations. --- Makefile | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index c5cb5da5..ea51f6d9 100644 --- a/Makefile +++ b/Makefile @@ -27,13 +27,14 @@ space:= space+= SRCLIBDIR:= $(subst $(space),\$(space),$(realpath lib)) -TARGETS:= stm32/f0 stm32/f1 stm32/f2 stm32/f3 stm32/f4 stm32/f7 \ - stm32/l0 stm32/l1 stm32/l4 \ - lpc13xx lpc17xx lpc43xx/m4 lpc43xx/m0 lm3s lm4f \ - efm32/tg efm32/g efm32/lg efm32/gg \ - sam/3a sam/3n sam/3s sam/3u sam/3x \ - sam/d \ - vf6xx +TARGETS := stm32/f0 stm32/f1 stm32/f2 stm32/f3 stm32/f4 stm32/f7 +TARGETS += stm32/l0 stm32/l1 stm32/l4 +TARGETS += lpc13xx lpc17xx lpc43xx/m4 lpc43xx/m0 +TARGETS += lm3s lm4f +TARGETS += efm32/tg efm32/g efm32/lg efm32/gg +TARGETS += sam/3a sam/3n sam/3s sam/3u sam/3x +TARGETS += sam/d +TARGETS += vf6xx # Be silent per default, but 'make V=1' will show all compiler calls. ifneq ($(V),1)