Browse Source

build: cope with more depths for libraries

this finds the libraries at more levels up from the current directory
master
Andrew Tridgell 14 years ago
parent
commit
ba6c58a33c
  1. 6
      libraries/AP_Common/Arduino.mk

6
libraries/AP_Common/Arduino.mk

@ -60,6 +60,12 @@ endif @@ -60,6 +60,12 @@ endif
#
ifeq ($(SKETCHBOOK),)
SKETCHBOOK := $(shell cd $(SRCROOT)/.. && pwd)
ifeq ($(wildcard $(SKETCHBOOK)/libraries),)
SKETCHBOOK := $(shell cd $(SRCROOT)/../.. && pwd)
endif
ifeq ($(wildcard $(SKETCHBOOK)/libraries),)
SKETCHBOOK := $(shell cd $(SRCROOT)/../../.. && pwd)
endif
ifeq ($(wildcard $(SKETCHBOOK)/libraries),)
SKETCHBOOK := $(shell cd $(SRCROOT)/../../../.. && pwd)
endif

Loading…
Cancel
Save