aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/kconfig.mk12
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/kconfig.mk b/tools/kconfig.mk
index c07bbfa..882ff31 100644
--- a/tools/kconfig.mk
+++ b/tools/kconfig.mk
@@ -15,12 +15,12 @@ $(CONFIG):
# So include of this file should be last line in Makefile
MAKEOVERRIDES =
-callconfig = $(Q)\
- [ ! -f "$(CONFIG)" ] || mv "$(CONFIG)" config; \
- IOEROOT="$(IOEROOT)" $(MAKE) -f "$(TOOL_PATH)/kconfig/GNUmakefile" --no-print-directory \
- TOPDIR=. SRCDIR="$(TOOL_PATH)/kconfig" $(1); \
- [ ! -f config ] || mv config "$(CONFIG)"; \
- [ ! -f config.old ] || mv config.old "$(CONFIG).old"
+define callconfig
+$(Q)[ ! -f "$(CONFIG)" ] || mv "$(CONFIG)" config
+$(Q)+$(MAKE) -f "$(TOOL_PATH)/kconfig/GNUmakefile" --no-print-directory IOEROOT="$(IOEROOT)" TOPDIR=. SRCDIR="$(TOOL_PATH)/kconfig" $(1)
+$(Q)[ ! -f config ] || mv config "$(CONFIG)"
+$(Q)[ ! -f config.old ] || mv config.old "$(CONFIG).old"
+endef
# Note about this file moving madness:
# avr-ioe is using Kconfig for configuration and it is not prepared too well for
# nested projects (at least I don't know way). This unfortunately means that to