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 <ralf@rdoering.net>
This commit is contained in:
Ralf Doering 2013-06-24 21:17:01 +02:00
parent 18688003a3
commit 7e33cd8810

View file

@ -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