/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: 2012-01-26 12:51:07 UTC
  • Revision ID: edam@waxworlds.org-20120126125107-j8yqkge8f2crwvsl
Tags: 0.1
announce that we're uploading and error on SERIALDEV blank

Show diffs side-by-side

added added

removed removed

Lines of Context:
222
222
target: $(TARGET).hex
223
223
 
224
224
upload:
 
225
        @echo "\nUploading to board..."
 
226
        @test -n "$(SERIALDEV)" || { \
 
227
                echo "error: SERIALDEV could not be determined automatically." >&2; \
 
228
                exit 1; }
225
229
        stty -F $(SERIALDEV) hupcl
226
230
        $(AVRDUDE) $(AVRDUDEFLAGS) -U flash:w:$(TARGET).hex:i
227
231
 
236
240
                -e 's/\(.\{12\}\) *\(.*\)/\1 \2/;p' $(BOARDS_FILE)
237
241
 
238
242
monitor:
 
243
        @test -n "$(SERIALDEV)" || { \
 
244
                echo "error: SERIALDEV could not be determined automatically." >&2; \
 
245
                exit 1; }
239
246
        screen $(SERIALDEV)
240
247
 
241
248
# building the target