From 7e33cd88102060bd09a56a4798bfba47784a462f Mon Sep 17 00:00:00 2001 From: Ralf Doering Date: Mon, 24 Jun 2013 21:17:01 +0200 Subject: [PATCH] Read Arduino.mk.local if it exists. If you don't want to clobber your environment, don't want to mess with the upstream makefile and dont want to tweak every project makefile, you can now place an Arduino.mk.local file with your settings into the same directory as Arduino.mk. If this new file exists, it will be included. Signed-off-by: Ralf Doering --- arduino-mk/Arduino.mk | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arduino-mk/Arduino.mk b/arduino-mk/Arduino.mk index 77f945b..b6feaac 100644 --- a/arduino-mk/Arduino.mk +++ b/arduino-mk/Arduino.mk @@ -196,6 +196,18 @@ # ######################################################################## + +######################################################################## +# +# include local configuration if it exists +MYDIR := $(dir $(lastword $(MAKEFILE_LIST))) +ifneq ($(wildcard $(MYDIR)/Arduino.mk.local),) +include $(MYDIR)/Arduino.mk.local +endif + + + + # Useful functions # Returns the first argument (typically a directory), if the file or directory # named by concatenating the first and optionally second argument