From fa5d689f785a4c8553acaa404f8544fd7f8f624f Mon Sep 17 00:00:00 2001 From: Piotr Esden-Tempski Date: Tue, 14 Aug 2012 17:44:54 -0700 Subject: Use make wildcard command for source dir detect. Library path fix. Thanks ni! --- examples/stm32/f4/Makefile.include | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/stm32/f4/Makefile.include') diff --git a/examples/stm32/f4/Makefile.include b/examples/stm32/f4/Makefile.include index 2e915ce..31ede74 100644 --- a/examples/stm32/f4/Makefile.include +++ b/examples/stm32/f4/Makefile.include @@ -26,7 +26,7 @@ LD = $(PREFIX)-gcc OBJCOPY = $(PREFIX)-objcopy OBJDUMP = $(PREFIX)-objdump GDB = $(PREFIX)-gdb -ifeq ($(shell ls ../../../../../lib/libopencm3_stm32f4.a 2>/dev/null),) +ifeq ($(wildcard ../../../../../lib/libopencm3_stm32f4.a),) TOOLCHAIN_DIR := $(shell dirname `which $(CC)`)/../$(PREFIX) else ifeq ($(V),1) -- cgit v1.2.3