From bba026ce336a9f0ec74f68c65e57f626c26e338a Mon Sep 17 00:00:00 2001 From: Fergus Noble Date: Fri, 9 Sep 2011 10:20:23 -0700 Subject: Update examples Makefiles to use the make shell function rather than backticks for shell command expansion. Backticks are unreliable and don't work on all platforms. --- examples/lpc13xx/Makefile.include | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/lpc13xx/Makefile.include') diff --git a/examples/lpc13xx/Makefile.include b/examples/lpc13xx/Makefile.include index c9ae180..2c0e2f8 100644 --- a/examples/lpc13xx/Makefile.include +++ b/examples/lpc13xx/Makefile.include @@ -25,7 +25,7 @@ LD = $(PREFIX)-gcc OBJCOPY = $(PREFIX)-objcopy OBJDUMP = $(PREFIX)-objdump # Uncomment this line if you want to use the installed (not local) library. -# TOOLCHAIN_DIR = `dirname \`which $(CC)\``/../$(PREFIX) +# TOOLCHAIN_DIR := $(shell dirname `which $(CC)`)/../$(PREFIX) TOOLCHAIN_DIR = ../../../.. CFLAGS += -Os -g -Wall -Wextra -I$(TOOLCHAIN_DIR)/include -fno-common \ -mcpu=cortex-m3 -mthumb -MD -- cgit v1.2.3