aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorpx4dev <px4@purgatory.org>2013-03-31 15:46:07 -0700
committerpx4dev <px4@purgatory.org>2013-03-31 15:46:07 -0700
commit335a645330fa1a525b552277a528d9a76deea56f (patch)
tree7ac8b937a828027529fb0bc0ff1539c8b90c8794 /Makefile
parentb1da85554805a449d5a0d25d984faf812031e20b (diff)
downloadpx4-firmware-335a645330fa1a525b552277a528d9a76deea56f.tar.gz
px4-firmware-335a645330fa1a525b552277a528d9a76deea56f.tar.bz2
px4-firmware-335a645330fa1a525b552277a528d9a76deea56f.zip
Add some help text.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile39
1 files changed, 39 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 8f9e81dce..d0ffeb740 100644
--- a/Makefile
+++ b/Makefile
@@ -145,3 +145,42 @@ distclean: clean
$(Q) $(REMOVE) -f $(ARCHIVE_DIR)*.export
$(Q) make -C $(NUTTX_SRC) -r $(MQUIET) distclean
+#
+# Print some help text
+#
+.PHONY: help
+help:
+ @echo ""
+ @echo " PX4 firmware builder"
+ @echo " ===================="
+ @echo ""
+ @echo " Available targets:"
+ @echo " ------------------"
+ @echo ""
+ @echo " archives"
+ @echo " Build the NuttX RTOS archives that are used by the firmware build."
+ @echo ""
+ @echo " all"
+ @echo " Build all firmware configs: $(CONFIGS)"
+ @echo " A limited set of configs can be built with:"
+ @echo ""
+ @echo " CONFIGS=<list-of-configs>"
+ @echo ""
+ @for config in $(CONFIGS); do \
+ echo " $$config"; \
+ echo " Build just the $$config firmware configuration."; \
+ echo ""; \
+ done
+ @echo " clean"
+ @echo " Remove all firmware build pieces."
+ @echo ""
+ @echo " distclean"
+ @echo " Remove all compilation products, including NuttX RTOS archives."
+ @echo ""
+ @echo " Common options:"
+ @echo " ---------------"
+ @echo ""
+ @echo " V=1"
+ @echo " If V is set, more verbose output is printed during the build. This can"
+ @echo " help when diagnosing issues with the build or toolchain."
+ @echo ""