/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-14 16:55:37 UTC
  • Revision ID: edam@waxworlds.org-20120114165537-71ftm2myrqoztubn
added DS1307 real-time clock library and updated Makefile

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
171
174
 
172
175
# no board? oh dear...
173
176
ifndef BOARD
237
240
target: $(TARGET).hex
238
241
 
239
242
upload:
240
 
        @test -n "$(SERIALDEV)" || { echo "SERIALDEV is unset." >&2; exit 1; }
241
243
        stty -F $(SERIALDEV) hupcl
242
244
        $(AVRDUDE) $(AVRDUDEFLAGS) -U flash:w:$(TARGET).hex:i
243
245
 
252
254
                -e 's/\(.\{12\}\) *\(.*\)/\1 \2/;p' $(BOARDS_FILE)
253
255
 
254
256
monitor:
255
 
        @test -n "$(SERIALDEV)" || { echo "SERIALDEV is unset." >&2; exit 1; }
256
257
        screen $(SERIALDEV)
257
258
 
258
259
# building the target