diff options
| author | Ladislas <ladislas@weareleka.com> | 2013-12-02 14:45:54 +0100 |
|---|---|---|
| committer | Sudar <sudar@sudarmuthu.com> | 2013-12-05 12:12:15 +0530 |
| commit | e04bb4d7d4d8df83aae7e856160b82480fe3f263 (patch) | |
| tree | 7384948ce6cbdfb2056f490e2b07abfc9a910bc2 /arduino-mk | |
| parent | 7bacc727a8c1f215d72614d6c1a480d2e03cbef6 (diff) | |
Auto detect and include libraries specified in `USER_LIB_PATH`
Fix #135
Diffstat (limited to 'arduino-mk')
| -rw-r--r-- | arduino-mk/Arduino.mk | 2 |
1 files changed, 2 insertions, 0 deletions
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 ######################################################################## |
