Makefile: add 'help' target for target summary
I find this "make help" very helpful (at work, on a different project). With this I don't have to crawl through Makefile when I need something but cannot remember what's the target name. It should also help discover new targets.
We may also have "make vars" (or something like that) that shows list of user-configurable variables, basically a conversion of the big comment block near the makefile's top into a printable target.
I don't work with this Makefile much, so this is just an idea. Anyone up to turn it to something actually useful?
--- Makefile | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-)
Makefile +14 -0
@@ -2603,3 +2603,17 @@ profile-all: profile-clean $(MAKE) CFLAGS="$(PROFILE_GEN_CFLAGS)" all $(MAKE) CFLAGS="$(PROFILE_GEN_CFLAGS)" -j1 test $(MAKE) CFLAGS="$(PROFILE_USE_CFLAGS)" all + +.PHONY: help + +help: + @echo "test Run the test suite" + @echo "coverage Build git with coverage support" + @echo "cover_db Generate coverage database from *.gcov" + @echo "cover_db_html Generate coverage report" + @echo "profile-all Build git with profiling support" + @echo "clean Clean intermediate files" + @echo "distclean Clean even more for dist packaging" + @echo "sparse Run git with sparse" + @echo "cscope Generate cscope symbol database" + @echo "check-docs Check documentation"
Signature · 1 line
1.7.8.36.g69ee2
乧畹ễ渠周á椠乧ọ挠䑵礠‼灣汯畤獀杭慩氮捯派⁷物瑥猺ਊ㸠䤠晩湤⁴桩猠≭慫攠桥汰∠癥特敬灦畬 慴⁷潲欬渠愠摩晦敲敮琊㸠灲潪散琩⸠坩瑨⁴桩猠䤠摯渧琠桡癥⁴漠捲慷氠瑨牯畧栠䵡步晩汥⁷桥渠䤠湥敤ਾ潭整桩湧畴慮湯琠牥浥浢敲⁷桡琧猠瑨攠瑡牧整慭攮⁉琠獨潵汤汳漊㸠桥汰楳捯癥爠湥眠瑡牧整献ਾ 㸠坥慹汳漠桡癥•浡步⁶慲猢 潲潭整桩湧楫攠瑨慴⤠瑨慴桯睳楳琊㸠潦⁵獥爭捯湦楧畲慢汥⁶慲楡扬敳Ⱐ扡獩捡汬礠愠捯湶敲獩潮映瑨攠扩朊㸠捯浭敮琠扬潣欠湥慲⁴桥慫敦楬攧猠瑯瀠楮瑯⁰物湴慢汥⁴慲来琮ਾ 㸠䤠摯渧琠睯牫⁷楴栠瑨楳⁍慫敦楬攠浵捨Ⱐ獯⁴桩猠楳畳琠慮摥愮⁁湹潮攊㸠異⁴漠瑵牮琠瑯潭整桩湧捴畡汬礠畳敦畬㼊桯畬搠瑨楳攠楮潭浩琠浥獳慧攬爠楮潭浥湴猠⡢敬潷•ⴭⵜ渢⤿ਊ乢⸠瑨敲攠睡猠慴敡獴湥瑴敭灴⁴漠慤搠≭慫攠桥汰∠畳楮朊楮ⵍ慫敦楬攠彡湮潴慴楯湳弬漠瑨慴•浡步敬瀢⁷潵汤渧琠来琠扡摬礠潵琊潦祮挮⸮ਊ㸠卩杮敤ⵯ晦ⵢ示⁎杵秾>앮⁔棾⁎柾>쵣⁄畹‼灣汯畤獀杭慩氮捯派ਾⴭਾ†䵡步晩汥⁼†‱㐠⬫⬫⬫⬫⬫⬫⬫ਾ†ㄠ晩汥猠捨慮来搬‱㐠楮獥牴楯湳⠫⤬‰敬整楯湳⠭⤊㸠ਾ楦映ⴭ杩琠愯䵡步晩汥⽍慫敦楬攊㸠楮摥砠敤㠲㌲〮扦㙣昹‱〰㘴㐊㸠ⴭⴠ愯䵡步晩汥ਾ⬫⽍慫敦楬攊㸠䁀㈶〳ⰳ㈶〳ⰱ㜠䁀⁰牯晩汥ⵡ汬㨠灲潦楬攭捬敡渊㸠 䵁䭅⤠䍆䱁䝓㴢偒但䥌䕟䝅也䍆䱁䝓⤢汬ਾ†त⡍䅋䔩⁃䙌䅇匽∤⡐剏䙉䱅彇䕎彃䙌䅇匩∠ㄠ瑥獴ਾ†त⡍䅋䔩⁃䙌䅇匽∤⡐剏䙉䱅录卅彃䙌䅇匩∠慬氊㸠⬊㸠⬮偈低夺敬瀊㸠⬊㸠⭨敬瀺ਾी散桯•瑥獴उ創渠瑨攠瑥獴畩瑥∊㸠⬉䁥捨漠≣潶敲慧攉䉵楬搠杩琠睩瑨潶敲慧攠獵灰潲琢ਾी散桯•捯癥牟摢े敮敲慴攠捯癥牡来慴慢慳攠晲潭捯瘢ਾी散桯•捯癥牟摢彨瑭氉䝥湥牡瑥潶敲慧攠牥灯牴∊㸠⬉䁥捨漠≰牯晩汥ⵡ汬ू畩汤楴⁷楴栠灲潦楬楮朠獵灰潲琢ਾी散桯•捬敡渉ृ汥慮湴敲浥摩慴攠晩汥猢ਾी散桯•摩獴捬敡渉䍬敡渠敶敮潲攠景爠摩獴⁰慣歡杩湧∊㸠⬉䁥捨漠≳灡牳攉॒畮楴⁷楴栠獰慲獥∊㸠⬉䁥捨漠≣獣潰攉े敮敲慴攠捳捯灥祭扯氠摡瑡扡獥∊㸠⬉䁥捨漠≣桥捫ⵤ潣猉䍨散欠摯捵浥湴慴楯渢ਾⴠਾ‱⸷⸸⸳㘮朶㥥攲ਾ ਭⴠ慫畢⁎慲ę扳歩