aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJakob Odersky <jodersky@gmail.com>2014-01-25 01:22:40 +0100
committerJakob Odersky <jodersky@gmail.com>2014-01-25 01:22:40 +0100
commit06c4f980e915c2ec6c685ca2ba8781b9af547239 (patch)
tree94634dc4798809e0fa6180ed44e655afcab5b1a3 /Makefile
parent9a10159e96a13585f9040ac5b15a3520f3d93ec8 (diff)
downloadmux-06c4f980e915c2ec6c685ca2ba8781b9af547239.tar.gz
mux-06c4f980e915c2ec6c685ca2ba8781b9af547239.tar.bz2
mux-06c4f980e915c2ec6c685ca2ba8781b9af547239.zip
fix freezing
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index b0fd7c0..a0b5e0e 100644
--- a/Makefile
+++ b/Makefile
@@ -92,6 +92,12 @@ upload: target
monitor:
cu -l $(SERIAL) -s $(BAUD) --parity=none -h
+cycle:
+ @make clean && \
+ make > /dev/null && \
+ read -p "Press enter to proceed with upload..." nothing && \
+ make upload
+
clean:
@rm -f *.o
@for module in $(MODULES); do \
@@ -122,4 +128,4 @@ $(GDBINITFILE): $(TARGET).elf
@echo "Use 'avr-gdb -x $(GDBINITFILE)'"
-.PHONY: clean arduino
+.PHONY: clean cycle