From ee42efc246a8e437f00ea4e18095a22ba1f0eede Mon Sep 17 00:00:00 2001 From: nathan Date: Fri, 12 Aug 2016 21:04:22 -0700 Subject: [PATCH] update makefile verbose option per https://github.com/betaflight/betaflight/pull/976 and @AndersHoglund --- Makefile | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 1a81c6cbbe..676b3d73d9 100644 --- a/Makefile +++ b/Makefile @@ -37,7 +37,9 @@ SERIAL_DEVICE ?= $(firstword $(wildcard /dev/ttyUSB*) no-port-found) # Flash size (KB). Some low-end chips actually have more flash than advertised, use this to override. FLASH_SIZE ?= -# Decide on a verbosity level based on the V= parameter +## Set verbosity level based on the V= parameter +## V=0 Low +## v=1 High export AT := @ ifndef V @@ -684,9 +686,9 @@ all: $(VALID_TARGETS) $(VALID_TARGETS): $(V0) echo "" && \ - $(V0) echo "Building $@" && \ - $(V0) $(MAKE) binary hex TARGET=$@ && \ - $(V0) echo "Building $@ succeeded." + echo "Building $@" && \ + $(MAKE) binary hex TARGET=$@ && \ + echo "Building $@ succeeded." @@ -759,9 +761,9 @@ help: Makefile $(V0) @echo "Makefile for the $(FORKNAME) firmware" $(V0) @echo "" $(V0) @echo "Usage:" - $(V0) @echo " make [TARGET=] [OPTIONS=\"\"]" + $(V0) @echo " make [V=] [TARGET=] [OPTIONS=\"\"]" $(V0) @echo "Or:" - $(V0) @echo " make [OPTIONS=\"\"]" + $(V0) @echo " make [V=] [OPTIONS=\"\"]" $(V0) @echo "" $(V0) @echo "Valid TARGET values are: $(VALID_TARGETS)" $(V0) @echo ""