@@ -119,54 +119,24 @@ endif
119119% .vo : __always__ Makefile.coq
120120 +$(COQMAKE ) $@
121121
122- # the doc targets doc and doc-clean are essentially copied from the Mathematical
123- # Components repository
124- # we reuse the scripts from the math-comp git repo (which is hard wired)
125- # modulo one fix: we change builddoc_lib.sh:l.18 to s/\(\*{5,}+\)//g;
126-
127- MATHCOMP = ../math-comp/
128-
129- doc : __always__ Makefile.coq
130- mkdir -p _build_doc/
131- cp -r $(COQFILES ) -t _build_doc/ --parents
132- cp _CoqProject Makefile* _build_doc
133- mkdir -p _build_doc/htmldoc
134- . $(MATHCOMP ) etc/utils/builddoc_lib.sh; \
135- cd _build_doc && mangle_sources $(COQFILES )
136- +cd _build_doc && $(COQMAKE )
137- # let's forget about the dependency graph for the time being...
138- # cd _build_doc && grep -v vio: .Makefile.coq.d > depend
139- # cd _build_doc && cat depend | $(MATHCOMP)etc/buildlibgraph $(COQFILES) > htmldoc/depend.js
140- cd _build_doc && $(COQDOC) -t "MathComp Analysis" \
141- -g --utf8 -Q classical mathcomp.classical -Q theories mathcomp.analysis \
142- --parse-comments \
143- --multi-index $(COQFILES) -d htmldoc
144- . $(MATHCOMP)etc/utils/builddoc_lib.sh; \
145- cd _build_doc && postprocess_html
146- cp $(MATHCOMP)etc/artwork/coqdoc.css _build_doc/htmldoc
147-
148- doc-clean :
149- rm -rf _build_doc/
150-
151- coq2html :
152- $(COQDEP ) -f _CoqProject > depend.d
153- ../coq2html/ocamldot/ocamldot depend.d > depend.dot
154- gsed -i ' s/Classical/mathcomp\.classical/' depend.dot
155- gsed -i ' s/Theories/mathcomp\.analysis/' depend.dot
156- gsed -i ' s/Reals_stdlib/mathcomp\.reals_stdlib/' depend.dot
157- gsed -i ' s/Experimental_reals/mathcomp\.experimental_reals/' depend.dot
158- gsed -i ' s/Reals/mathcomp\.reals/' depend.dot
159- gsed -i ' s/Analysis_stdlib/mathcomp\.analysis_stdlib/' depend.dot
160- gsed -i ' s/\//\./g' depend.dot
161- ../coq2html/tools/generate-hierarchy-graph.sh
162- find . -not -path ' */.*' -name " *.v" -or -name " *.glob" | xargs ../coq2html/coq2html \
163- -hierarchy-graph hierarchy-graph.dot \
164- -dependency-graph depend.dot \
165- -title "Mathcomp Analysis" \
166- -d html/ -base mathcomp -Q theories analysis \
167- -coqlib https ://rocq-prover.org/doc/V8.20.1/stdlib/ \
168- -external https ://math-comp.github.io/htmldoc_2_3_0/ mathcomp.ssreflect \
169- -external https ://math-comp.github.io/htmldoc_2_3_0/ mathcomp.algebra
170-
171- coq2html-clean :
172- rm -f * /* .glob
122+ # Html documentation
123+
124+ DOCDIR =html
125+
126+ $(DOCDIR ) /dependency_graph.pre :
127+ mkdir -p $(DOCDIR )
128+ coqdep -f _CoqProject | perl etc/builddoc_dependency_dot.pl > $(DOCDIR ) /dependency_graph.pre
129+
130+ $(DOCDIR ) /dependency_graph.dot : $(DOCDIR ) /dependency_graph.pre
131+ mkdir -p $(DOCDIR )
132+ tred $(DOCDIR ) /dependency_graph.pre > $(DOCDIR ) /dependency_graph.dot
133+
134+ html : build $(DOCDIR ) /dependency_graph.dot
135+ mkdir -p $(DOCDIR )
136+ find . -not -path ' */.*' -name " *.v" -or -name " *.glob" | xargs rocqnavi \
137+ -title " Mathcomp Analysis" \
138+ -d $(DOCDIR ) -base mathcomp -Q theories analysis \
139+ -coqlib https://rocq-prover.org/doc/V8.20.1/stdlib/ \
140+ -dependency-graph $(DOCDIR ) /dependency_graph.dot \
141+ -external https://math-comp.github.io/htmldoc_2_3_0/ mathcomp.ssreflect \
142+ -external https://math-comp.github.io/htmldoc_2_3_0/ mathcomp.algebra
0 commit comments