From 5f592615d62abc831d089e2f4232db3568ce388e Mon Sep 17 00:00:00 2001 From: Frantisek Burian Date: Tue, 21 Jan 2014 17:58:31 +0100 Subject: [PATCH] [BUILD] Correct inplace build for examples --- examples/Makefile.rules | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/Makefile.rules b/examples/Makefile.rules index 27ff601..055f0a3 100644 --- a/examples/Makefile.rules +++ b/examples/Makefile.rules @@ -56,10 +56,10 @@ ifeq ($(strip $(OPENCM3_DIR)),) # user has not specified the library path, so we try to detect it # where we search for the library -LIBPATHS := ./libopencm3 ../../../../../libopencm3 +LIBPATHS := ./libopencm3 ../../../../libopencm3 ../../../../../libopencm3 OPENCM3_DIR := $(wildcard $(LIBPATHS:=/locm3.sublime-project)) -OPENCM3_DIR := $(firstword $(shell dirname $(OPENCM3_DIR))) +OPENCM3_DIR := $(firstword $(dir $(OPENCM3_DIR))) ifeq ($(strip $(OPENCM3_DIR)),) $(warning Cannot find libopencm3 library in the standard search paths.)