[BUILD] Correct inplace build for examples

This commit is contained in:
Frantisek Burian
2014-01-21 17:58:31 +01:00
parent 379889e732
commit 5f592615d6

View File

@@ -56,10 +56,10 @@ ifeq ($(strip $(OPENCM3_DIR)),)
# user has not specified the library path, so we try to detect it # user has not specified the library path, so we try to detect it
# where we search for the library # where we search for the library
LIBPATHS := ./libopencm3 ../../../../../libopencm3 LIBPATHS := ./libopencm3 ../../../../libopencm3 ../../../../../libopencm3
OPENCM3_DIR := $(wildcard $(LIBPATHS:=/locm3.sublime-project)) OPENCM3_DIR := $(wildcard $(LIBPATHS:=/locm3.sublime-project))
OPENCM3_DIR := $(firstword $(shell dirname $(OPENCM3_DIR))) OPENCM3_DIR := $(firstword $(dir $(OPENCM3_DIR)))
ifeq ($(strip $(OPENCM3_DIR)),) ifeq ($(strip $(OPENCM3_DIR)),)
$(warning Cannot find libopencm3 library in the standard search paths.) $(warning Cannot find libopencm3 library in the standard search paths.)