From e04bb4d7d4d8df83aae7e856160b82480fe3f263 Mon Sep 17 00:00:00 2001 From: Ladislas Date: Mon, 2 Dec 2013 14:45:54 +0100 Subject: Auto detect and include libraries specified in `USER_LIB_PATH` Fix #135 --- arduino-mk/Arduino.mk | 2 ++ 1 file changed, 2 insertions(+) (limited to 'arduino-mk/Arduino.mk') diff --git a/arduino-mk/Arduino.mk b/arduino-mk/Arduino.mk index 997a853..42b3abe 100644 --- a/arduino-mk/Arduino.mk +++ b/arduino-mk/Arduino.mk @@ -669,6 +669,8 @@ ifndef ARDUINO_LIBS $(shell sed -ne "s/^ *\# *include *[<\"]\(.*\)\.h[>\"]/\1/p" $(LOCAL_SRCS))) ARDUINO_LIBS += $(filter $(notdir $(wildcard $(ARDUINO_SKETCHBOOK)/libraries/*)), \ $(shell sed -ne "s/^ *\# *include *[<\"]\(.*\)\.h[>\"]/\1/p" $(LOCAL_SRCS))) + ARDUINO_LIBS += $(filter $(notdir $(wildcard $(USER_LIB_PATH)/*)), \ + $(shell sed -ne "s/^ *\# *include *[<\"]\(.*\)\.h[>\"]/\1/p" $(LOCAL_SRCS))) endif ######################################################################## -- cgit v1.2.3