aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32/f4/Makefile.include
diff options
context:
space:
mode:
authorPiotr Esden-Tempski2012-08-14 17:44:54 -0700
committerPiotr Esden-Tempski2012-08-14 17:48:23 -0700
commitfa5d689f785a4c8553acaa404f8544fd7f8f624f (patch)
treef5384f23ab26776bd673978719dcfc2220cfc9bb /examples/stm32/f4/Makefile.include
parentb82e7eee52f72200b9f4a615c299056c4e09e071 (diff)
Use make wildcard command for source dir detect. Library path fix.
Thanks ni!
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)