summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMegan Wachs <megan@sifive.com>2017-02-02 09:09:35 -0800
committerMegan Wachs <megan@sifive.com>2017-02-02 09:09:35 -0800
commitb03acee657964f3c0268645b76ba8c3a3163c3fa (patch)
tree2e82a06545b33d25b1a83680f55770e5478d58a7 /Makefile
parent8bd2184f1b2c44dffaa3221898a32e8540769a27 (diff)
help: Re-organized the Makefile help, and updated the README to use the already existing 'uninstall' target to remove and reinstall tools.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 12 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index bd715d2..c995728 100644
--- a/Makefile
+++ b/Makefile
@@ -17,24 +17,28 @@ help :
@echo " tools:"
@echo " Install compilation & debugging tools"
@echo ""
+ @echo " uninstall:"
+ @echo " Uninstall the compilation & debugging tools"
+ @echo ""
@echo " software [PROGRAM=$(DEFAULT_PROGRAM) BOARD=$(DEFAULT_BOARD)]:"
@echo " Build a software program to load with the"
@echo " debugger."
@echo ""
- @echo " run_debug [PROGRAM=$(DEFAULT_PROGRAM) BOARD=$(DEFAULT_BOARD)]:"
- @echo " Launch OpenOCD & GDB to load or debug "
- @echo " running programs."
- @echo ""
@echo " upload [PROGRAM=$(DEFAULT_PROGRAM) BOARD=$(DEFAULT_BOARD)]:"
@echo " Launch OpenOCD to flash your program to the"
@echo " on-board Flash"
@echo ""
+ @echo " run_debug [PROGRAM=$(DEFAULT_PROGRAM) BOARD=$(DEFAULT_BOARD)]:"
+ @echo " Launch OpenOCD & GDB to load or debug "
+ @echo " running programs. Does not allow Ctrl-C to halt running programs."
+ @echo ""
@echo " run_openocd [BOARD=$(DEFAULT_BOARD)]:"
@echo " run_gdb [PROGRAM=$(DEFAULT_PROGRAM) BOARD=$(DEFAULT_BOARD)]:"
- @echo " Launch OpenOCD or GDB seperately"
+ @echo " Launch OpenOCD or GDB seperately. Allows Ctrl-C to halt running"
+ @echo " programs."
@echo ""
@echo " dasm [PROGRAM=$(DEFAULT_BOARD)]:"
- @echo " Generates the dissassembly output of objdump -D to stdout."
+ @echo " Generates the dissassembly output of 'objdump -D' to stdout."
@echo ""
@echo " For more information, visit dev.sifive.com"
@@ -81,7 +85,8 @@ $(openocd_dest)/bin/openocd: $(openocd_srcdir)
.PHONY: uninstall
uninstall:
- rm -rf -- $(toolchain_dest)
+ rm -rf $(wrkdir)
+ rm -rf $(toolchain_dest)
#############################################################
# This Section is for Software Compilation