From 37a2c97ef75d447bb749a7cec3c471ad258ccbd8 Mon Sep 17 00:00:00 2001 From: Max Linke Date: Mon, 26 Dec 2016 12:22:44 +0100 Subject: [PATCH] Allow env overwrite of ARDUINO_* vars This allows to call make with `ARDUINO_PATH=/custom/install/loc make` to avoid having to modify the Makefile when the arduino components are installed in non standard installation paths. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 8e9d9a5a..2fe64279 100644 --- a/Makefile +++ b/Makefile @@ -5,8 +5,8 @@ uname_S := $(shell sh -c 'uname -s 2>/dev/null || echo not') DEVICE_PORT := `ls /dev/ttyACM*` DEVICE_PORT_BOOTLOADER := `ls /dev/ttyACM*` -ARDUINO_PATH=/usr/local/arduino -ARDUINO_LOCAL_LIB_PATH=$(HOME)/Arduino +ARDUINO_PATH?=/usr/local/arduino +ARDUINO_LOCAL_LIB_PATH?=$(HOME)/Arduino MD5 = md5sum