Makefile: different solution for commit f5a26de775, as suggested

by triffid.
This commit is contained in:
Markus Hitter 2010-10-05 12:19:34 +02:00
parent 95939ecc22
commit af53d2350e
1 changed files with 2 additions and 2 deletions

View File

@ -80,11 +80,11 @@ OBJ = $(patsubst %.c,%.o,${SOURCES})
all: config.h $(PROGRAM).hex $(PROGRAM).lst $(PROGRAM).sym size
program: config.h $(PROGRAM).hex
program: $(PROGRAM).hex config.h
stty $(PROGBAUD) raw ignbrk hup < $(PROGPORT)
@sleep 0.1
@stty $(PROGBAUD) raw ignbrk hup < $(PROGPORT)
$(AVRDUDE) -cstk500v1 -b$(PROGBAUD) -p$(MCU_TARGET) -P$(PROGPORT) -C$(AVRDUDECONF) -U flash:w:$(PROGRAM).hex
$(AVRDUDE) -cstk500v1 -b$(PROGBAUD) -p$(MCU_TARGET) -P$(PROGPORT) -C$(AVRDUDECONF) -U flash:w:$^
stty 115200 raw ignbrk -hup -echo ixoff < $(PROGPORT)
clean: