aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32/f4/Makefile.include
diff options
context:
space:
mode:
Diffstat (limited to 'examples/stm32/f4/Makefile.include')
-rw-r--r--examples/stm32/f4/Makefile.include2
1 files changed, 1 insertions, 1 deletions
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)