From 90779256e00cc6daff35cc768238a5bdaa21a151 Mon Sep 17 00:00:00 2001 From: sprhawk Date: Mon, 1 Sep 2014 21:50:45 +0800 Subject: added a template for conditional rule --- Makefile.template | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Makefile.template') diff --git a/Makefile.template b/Makefile.template index c5f79d3..5d57cbd 100644 --- a/Makefile.template +++ b/Makefile.template @@ -18,6 +18,10 @@ TEMPLATE_PATH = $(BUILD_SCRIPTS_PATH) # debug: CFLAGS+=-DENABLE_DEBUG_LOG_SUPPORT C_SOURCE_FILES += main.c +ifeq ($(MAKECMDGOALS),debug) # template for conditional rules +# C_SOURCE_FILES += uart.c +endif + # C_SOURCE_FILES += softdevice_handler.c # need custome defined assert_nrf_callback() # nrf_delay -- cgit v1.2.3