From 4ceeef9e214da79dce50546883b3a5d4e894f9c0 Mon Sep 17 00:00:00 2001
From: Philippe Kehl <phkehl@gmail.com>
Date: Sat, 16 Jun 2018 12:02:17 +0200
Subject: [PATCH] add 'make help' hooks

Projects can define will_help and/or did_help functions, which lets them
add additional help text (output of 'make help') before respectively
after the standard esp-open-rtos help text.
---
 common.mk | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/common.mk b/common.mk
index 82a6cc1..69c3923 100644
--- a/common.mk
+++ b/common.mk
@@ -275,6 +275,7 @@ clean:
 
 # print some useful help stuff
 help:
+	$(if will_help, $(call will_help))
 	@echo "esp-open-rtos make"
 	@echo ""
 	@echo "Other targets:"
@@ -304,5 +305,6 @@ help:
 	@echo "SAMPLE COMMAND LINE:"
 	@echo "make -j2 test ESPPORT=/dev/ttyUSB0"
 	@echo ""
+	$(if did_help, $(call did_help))