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/lm3s/Makefile.include | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/lm3s/Makefile.include') diff --git a/examples/lm3s/Makefile.include b/examples/lm3s/Makefile.include index 4d774be..0e18bd6 100644 --- a/examples/lm3s/Makefile.include +++ b/examples/lm3s/Makefile.include @@ -24,7 +24,7 @@ CC = $(PREFIX)-gcc LD = $(PREFIX)-gcc OBJCOPY = $(PREFIX)-objcopy OBJDUMP = $(PREFIX)-objdump -ifeq ($(shell ls ../../../../../lib/libopencm3_lm3s.a 2>/dev/null),) +ifeq ($(wildcard ../../../../lib/libopencm3_lm3s.a),) TOOLCHAIN_DIR := $(shell dirname `which $(CC)`)/../$(PREFIX) else ifeq ($(V),1) -- cgit v1.2.3