summaryrefslogtreecommitdiffstats
path: root/Arduino.mk
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2011-11-18 05:15:37 +0100
committerAlexander Sulfrian <alexander@sulfrian.net>2011-11-18 05:15:37 +0100
commitae733cf8ab531f3ecc5ff3230d39fe9ebc7638c8 (patch)
treeae878fe2d25923d13b605f9f1c28075914f6ffed /Arduino.mk
parentfcf04bcd0a6536870bc3c7f0e620c0640c17f03c (diff)
downloadarduino-mk-ae733cf8ab531f3ecc5ff3230d39fe9ebc7638c8.tar.gz
arduino-mk-ae733cf8ab531f3ecc5ff3230d39fe9ebc7638c8.tar.xz
arduino-mk-ae733cf8ab531f3ecc5ff3230d39fe9ebc7638c8.zip
first rebuild the hex file, before reseting and flashing
Diffstat (limited to '')
-rw-r--r--Arduino.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/Arduino.mk b/Arduino.mk
index e55b683..7e9cea1 100644
--- a/Arduino.mk
+++ b/Arduino.mk
@@ -420,7 +420,7 @@ $(TARGET_ELF): $(OBJS) $(CORE_ARCHIVE)
$(DEP_FILE): $(OBJDIR) $(DEPS)
cat $(DEPS) > $(DEP_FILE)
-upload: reset raw_upload
+upload: $(TARGET_HEX) reset raw_upload
raw_upload: $(TARGET_HEX)
$(AVRDUDE) $(AVRDUDE_COM_OPTS) $(AVRDUDE_ARD_OPTS) \