/make/arduino-mk

To get this branch, use:
bzr branch http://bzr.ed.am/make/arduino-mk

« back to all changes in this revision

Viewing changes to arduino.mk

  • Committer: edam
  • Date: 2013-01-04 16:45:47 UTC
  • Revision ID: tim@ed.am-20130104164547-xxr8xicwbxzrdn67
updated TODO

Show diffs side-by-side

added added

removed removed

Lines of Context:
144
144
# monitor      Start `screen` on the serial device.  This is meant to be an
145
145
#              equivalent to the Arduino serial monitor.
146
146
#
147
 
# size         Displays size information about the built target.
 
147
# size         Displays size information about the bulit target.
148
148
#
149
149
# bootloader   Burns the bootloader for your board to it.
150
150
#
155
155
 
156
156
# default arduino software directory, check software exists
157
157
ifndef ARDUINODIR
158
 
ARDUINODIR := $(firstword $(wildcard ~/opt/arduino /usr/share/arduino \
159
 
        /Applications/Arduino.app/Contents/Resources/Java \
160
 
        $(HOME)/Applications/Arduino.app/Contents/Resources/Java))
 
158
ARDUINODIR := $(firstword $(wildcard ~/opt/arduino /usr/share/arduino))
161
159
endif
162
160
ifeq "$(wildcard $(ARDUINODIR)/hardware/arduino/boards.txt)" ""
163
161
$(error ARDUINODIR is not set correctly; arduino software not found)
209
207
BOARD_BOOTLOADER_FILE := $(call readboardsparam,bootloader.file)
210
208
 
211
209
# obtain preferences from the IDE's preferences.txt
212
 
PREFERENCESFILE := $(firstword $(wildcard \
213
 
        $(HOME)/.arduino/preferences.txt $(HOME)/Library/Arduino/preferences.txt))
 
210
PREFERENCESFILE := $(wildcard $(HOME)/.arduino/preferences.txt)
214
211
ifneq "$(PREFERENCESFILE)" ""
215
212
readpreferencesparam = $(shell sed -ne "s/$(1)=\(.*\)/\1/p" $(PREFERENCESFILE))
216
213
SKETCHBOOKDIR := $(call readpreferencesparam,sketchbook.path)