/elec/propeller-clock

To get this branch, use:
bzr branch http://bzr.ed.am/elec/propeller-clock

« back to all changes in this revision

Viewing changes to src/Makefile

  • Committer: edam
  • Date: 2012-01-26 23:54:36 UTC
  • Revision ID: edam@waxworlds.org-20120126235436-mlq6e00q6rxqudy2
updated schematic

Show diffs side-by-side

added added

removed removed

Lines of Context:
168
168
ifeq ($(SERIALDEV), )
169
169
SERIALDEV := $(firstword $(wildcard /dev/ttyACM? /dev/ttyUSB?))
170
170
endif
171
 
ifeq ($(SERIALDEV), )
172
 
$(error SERIALDEV is unset and could not be automatically determined)
173
 
endif
174
171
 
175
172
# no board? oh dear...
176
173
ifndef BOARD
240
237
target: $(TARGET).hex
241
238
 
242
239
upload:
 
240
        @test -n "$(SERIALDEV)" || { echo "SERIALDEV is unset." >&2; exit 1; }
243
241
        stty -F $(SERIALDEV) hupcl
244
242
        $(AVRDUDE) $(AVRDUDEFLAGS) -U flash:w:$(TARGET).hex:i
245
243
 
254
252
                -e 's/\(.\{12\}\) *\(.*\)/\1 \2/;p' $(BOARDS_FILE)
255
253
 
256
254
monitor:
 
255
        @test -n "$(SERIALDEV)" || { echo "SERIALDEV is unset." >&2; exit 1; }
257
256
        screen $(SERIALDEV)
258
257
 
259
258
# building the target