Skip to content
Snippets Groups Projects
Commit ebca70d9 authored by Björn Brandenburg's avatar Björn Brandenburg
Browse files

remove `coqdoc` hack from Makefile patch

The standard variable `COQDOCEXTRAFLAGS` can achieve the same result,
in a less hackish way.
parent 5bff9969
No related branches found
No related tags found
1 merge request!337remove Makefile patching and fix links in spec
......@@ -59,9 +59,8 @@ mangle-namesCoqProject: commonCoqProject
-print | scripts/module-toc-order.py >> $(COQ_PROJ)
$(COQ_MAKEFILE): $(COQ_PROJ) scripts/Makefile.coq.patch
@coq_makefile -f $< -o $@
@# Patch HTML target to switch out color, and
@# so that it parses comments and has links to ssreflect.
@coq_makefile -f $< -o $@ COQDOCEXTRAFLAGS = "--parse-comments --external https://math-comp.github.io/htmldoc/ mathcomp"
@# Patch HTML target to switch out color.
@# Also include Makefile.coqdocjs for 'htmlpretty' documentation target.
@patch -s < scripts/Makefile.coq.patch
......
......@@ -12,15 +12,6 @@
# This file is generated by coq_makefile and contains many variable
# definitions, like the list of .v files or the path to Coq
include Makefile.conf
@@ -211,7 +216,7 @@
# these flags do NOT contain the libraries, to make them easier to overwrite
COQFLAGS?=-q $(OTHERFLAGS) $(COQEXTRAFLAGS)
COQCHKFLAGS?=-silent -o $(COQCHKEXTRAFLAGS)
-COQDOCFLAGS?=-interpolate -utf8 $(COQDOCEXTRAFLAGS)
+COQDOCFLAGS?=-interpolate -utf8 --parse-comments --external https://math-comp.github.io/htmldoc/ mathcomp $(COQDOCEXTRAFLAGS)
COQDOCLIBS?=$(COQLIBS_NOML)
@@ -480,6 +485,9 @@
$(HIDE)mkdir -p html
$(HIDE)$(COQDOC) \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment