[Skiboot] [PATCH v2] Makefile: Make it easier to find the docs

Joel Stanley joel at jms.id.au
Tue Apr 10 16:38:30 AEST 2018


Ad a top level 'doc' target that builds the html docs when the user
types 'make doc'. Users who want other targets know that the docs live
under docs/, so can go looking there.

Signed-off-by: Joel Stanley <joel at jms.id.au>
---
v2: build the html target as this is what most users want
---
 Makefile.main | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/Makefile.main b/Makefile.main
index 96836384aba8..584d46df3758 100644
--- a/Makefile.main
+++ b/Makefile.main
@@ -290,13 +290,16 @@ skiboot.info: coverage external/pflash/pflash.info external/gard/gard.info
 	lcov -q -a $@ -a external/gard/gard.info -o $@
 	lcov -q -r $@ $(LCOV_EXCLUDE) -o $@ --rc lcov_branch_coverage=1
 
+doc:
+	make -C doc html
+
 tags:
 	find . -name '*.[chS]' | xargs ctags
 
 TAGS:
 	find . -name '*.[chS]' | xargs etags
 
-.PHONY: tags TAGS check coverage
+.PHONY: tags TAGS check coverage doc
 
 cscope:
 	find . -name '*.[chS]' | xargs cscope
-- 
2.17.0



More information about the Skiboot mailing list