aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMarti Bolivar <mbolivar@leaflabs.com>2011-09-01 15:05:32 -0400
committerMarti Bolivar <mbolivar@leaflabs.com>2011-09-07 23:33:59 -0400
commitdb9ac39e9dd87ba57f2b32ce211f9b35779b9e80 (patch)
tree1cf4893865c245659c02618b48980c2f8aa87081 /Makefile
parent182d2541f22ee0629c20fb6ed2ec9a009152c1e7 (diff)
downloadlibrambutan-db9ac39e9dd87ba57f2b32ce211f9b35779b9e80.tar.gz
librambutan-db9ac39e9dd87ba57f2b32ce211f9b35779b9e80.zip
Makefile: tweak clean, add mrproper, make help more helpful.
Remove doxygen from clean; no sense killing the docs just because you want to change boards. Add new "mrproper" target to nuke all autogenerated files; currently, this is just the build/ and doxygen/ directories. Make a note of BOARD env. variable and doxygen, mrproper targets from help target.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 11 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index f711443..8723273 100644
--- a/Makefile
+++ b/Makefile
@@ -103,7 +103,7 @@ $(foreach m,$(LIBMAPLE_MODULES),$(eval $(call LIBMAPLE_MODULE_template,$(m))))
# Main target
include $(SRCROOT)/build-targets.mk
-.PHONY: install sketch clean help debug cscope tags ctags ram flash jtag doxygen
+.PHONY: install sketch clean help debug cscope tags ctags ram flash jtag doxygen mrproper
# Target upload commands
UPLOAD_ram := $(SUPPORT_PATH)/scripts/reset.py && \
@@ -130,12 +130,19 @@ endif
sketch: build-check MSG_INFO $(BUILD_PATH)/$(BOARD).bin
clean:
- rm -rf build doxygen
+ rm -rf build
+
+mrproper: clean
+ rm -rf doxygen
help:
@echo ""
@echo " libmaple Makefile help"
@echo " ----------------------"
+ @echo " "
+ @echo " Be sure to set BOARD if not compiling for Maple (e.g."
+ @echo " use BOARD=maple_mini for mini, etc.)"
+ @echo " "
@echo " Compile targets (default MEMORY_TARGET=flash):"
@echo " ram: Compile sketch code to ram"
@echo " flash: Compile sketch code to flash"
@@ -149,6 +156,8 @@ help:
@echo " debug: Start an openocd gdb server, port 3333"
@echo " clean: Remove all build and object files"
@echo " help: Show this message"
+ @echo " doxygen: Build Doxygen HTML and XML documentation"
+ @echo " mrproper: Remove all generated files"
@echo " "
debug: