From 1a6b492438dc72ef076bb38d0d5f08470d92116a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Harter?= Date: Fri, 3 Nov 2017 13:51:51 +0100 Subject: [PATCH] Makefile.base: Fix indentation to two spaces --- Makefile.base | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/Makefile.base b/Makefile.base index 1def37be50..bd99f29ea2 100644 --- a/Makefile.base +++ b/Makefile.base @@ -1,5 +1,5 @@ ifeq (, $(__RIOTBUILD_FLAG)) - $(error You cannot build a module on its own. Use "make" in your application's directory instead.) + $(error You cannot build a module on its own. Use "make" in your application's directory instead.) endif unexport DIRS @@ -24,32 +24,32 @@ ${DIRS:%=CLEAN--%}: ## submodules ifeq (1, $(SUBMODULES)) - # don't use *.c as SRC if SRC is empty (e.g., no module selected) - NO_AUTO_SRC := 1 + # don't use *.c as SRC if SRC is empty (e.g., no module selected) + NO_AUTO_SRC := 1 - # allow different submodule basename (e.g., MODULE=cpu_periph_common, but match just periph_%) - BASE_MODULE ?= $(MODULE) + # allow different submodule basename (e.g., MODULE=cpu_periph_common, but match just periph_%) + BASE_MODULE ?= $(MODULE) - # for each $(BASE_MODULE)_ in USEMODULE, add .c to SRC - SRC += $(patsubst $(BASE_MODULE)_%,%.c,$(filter $(BASE_MODULE)_%,$(USEMODULE))) + # for each $(BASE_MODULE)_ in USEMODULE, add .c to SRC + SRC += $(patsubst $(BASE_MODULE)_%,%.c,$(filter $(BASE_MODULE)_%,$(USEMODULE))) - # don't fail if a selected *.c file does not exist - ifeq (1, $(SUBMODULES_NOFORCE)) - SRC := $(filter $(SRC), $(wildcard *.c)) - endif + # don't fail if a selected *.c file does not exist + ifeq (1, $(SUBMODULES_NOFORCE)) + SRC := $(filter $(SRC), $(wildcard *.c)) + endif endif ifeq ($(strip $(SRC))$(NO_AUTO_SRC),) - SRC := $(filter-out $(SRC_NOLTO), $(wildcard *.c)) + SRC := $(filter-out $(SRC_NOLTO), $(wildcard *.c)) endif ifeq ($(strip $(SRCXX))$(NO_AUTO_SRC),) - SRCXX := $(wildcard *.cpp) + SRCXX := $(wildcard *.cpp) endif ifeq ($(strip $(ASMSRC))$(NO_AUTO_SRC),) - ASMSRC := $(wildcard *.s) + ASMSRC := $(wildcard *.s) endif ifeq ($(strip $(ASSMSRC))$(NO_AUTO_SRC),) - ASSMSRC := $(wildcard *.S) + ASSMSRC := $(wildcard *.S) endif OBJC_LTO := $(SRC:%.c=$(BINDIR)/$(MODULE)/%.o)