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.
This commit is contained in:
Philippe Kehl 2018-06-16 12:02:17 +02:00
parent a89417e26e
commit 4ceeef9e21

View file

@ -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))