Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions Makefile.common
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@
# pre-makefile::, this-clean:: and __always__:: may be extended #
# Additionally, the following variables may be customized: #
SUBDIRS?=
COQBIN?=$(dir $(shell which coqtop))
COQMAKEFILE?=$(COQBIN)coq_makefile
COQDEP?=$(COQBIN)coqdep
COQBIN?=$(dir $(shell command -v coqtop || command -v rocq))
COQMAKEFILE?=$(shell command -v coq_makefile || echo "$(COQBIN)rocq makefile")
COQC?=$(shell command -v coqc || echo "$(COQBIN)rocq c")
COQDEP?=$(shell command -v coqdep || echo "$(COQBIN)rocq dep")
COQDOC?=$(shell command -v coqdoc || echo "$(COQBIN)rocq doc")
COQPROJECT?=_CoqProject
COQMAKEOPTIONS?=
COQMAKEFILEOPTIONS?=
Expand Down Expand Up @@ -44,7 +46,7 @@ all: config build

Makefile.coq: pre-makefile $(COQPROJECT) Makefile
(echo "From mathcomp.algebra Require Import interval_inference." > test_interval_inference.v \
&& (rocq c test_interval_inference.v > /dev/null 2>&1) \
&& ($(COQC) test_interval_inference.v > /dev/null 2>&1) \
&& test -f interval_inference.v -o -f reals/interval_inference.v \
&& touch rm_interval_inference) || true
$(RM) test_interval_inference.v
Expand Down Expand Up @@ -135,7 +137,7 @@ doc: __always__ Makefile.coq
# let's forget about the dependency graph for the time being...
# cd _build_doc && grep -v vio: .Makefile.coq.d > depend
# cd _build_doc && cat depend | $(MATHCOMP)etc/buildlibgraph $(COQFILES) > htmldoc/depend.js
cd _build_doc && $(COQBIN)coqdoc -t "MathComp Analysis" \
cd _build_doc && $(COQDOC) -t "MathComp Analysis" \
-g --utf8 -Q classical mathcomp.classical -Q theories mathcomp.analysis \
--parse-comments \
--multi-index $(COQFILES) -d htmldoc
Expand All @@ -147,7 +149,7 @@ doc-clean:
rm -rf _build_doc/

coq2html:
coqdep -f _CoqProject > depend.d
$(COQDEP) -f _CoqProject > depend.d
../coq2html/ocamldot/ocamldot depend.d > depend.dot
gsed -i 's/Classical/mathcomp\.classical/' depend.dot
gsed -i 's/Theories/mathcomp\.analysis/' depend.dot
Expand Down
2 changes: 1 addition & 1 deletion coq-mathcomp-classical.opam
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ build: [make "-C" "classical" "-j%{jobs}%"]
install: [make "-C" "classical" "install"]
depends: [
("coq" {>= "8.20" & < "8.21~"}
| "rocq-core" { (>= "9.0" & < "9.1~") | (= "dev") })
| "coq-core" { (>= "9.0" & < "9.1~") | (= "dev") })
"coq-mathcomp-ssreflect" { (>= "2.2.0" & < "2.5~") | (= "dev") }
"coq-mathcomp-fingroup"
"coq-mathcomp-algebra"
Expand Down
Loading