Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Use coq_makefile instead of dune, temporarily #41

Closed
wants to merge 1 commit into from
Closed
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
22 changes: 12 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
# -*- Makefile -*-

# --------------------------------------------------------------------
DUNEOPTS ?=
DUNE := dune $(DUNEOPTS)
all: Makefile.coq
+make -f Makefile.coq all

# --------------------------------------------------------------------
.PHONY: default build clean
clean: Makefile.coq
+make -f Makefile.coq clean
rm -f Makefile.coq Makefile.coq.conf

default: build
_CoqProject:;

build:
$(DUNE) build
Makefile.coq: _CoqProject
$(COQBIN)coq_makefile -f _CoqProject -o Makefile.coq

clean:
$(DUNE) clean
%: Makefile.coq
+make -f Makefile.coq $@

.PHONY: all clean
9 changes: 8 additions & 1 deletion _CoqProject
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,11 @@
-arg -w -arg -redundant-canonical-projection
-arg -w -arg -projection-no-head-constant

-R _build/default/src SsrMultinomials
# -R _build/default/src SsrMultinomials
-R src SsrMultinomials

src/ssrcomplements.v
src/monalg.v
src/xfinmap.v
src/mpoly.v
src/freeg.v
6 changes: 5 additions & 1 deletion coq-mathcomp-multinomials.opam
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ bug-reports: "https://github.com/math-comp/multinomials/issues"
dev-repo: "git+https://github.com/math-comp/multinomials.git"
license: "CeCILL-B"
authors: ["Pierre-Yves Strub"]
build: [ "dune" "build" "-p" name "-j" jobs ]
# build: [ "dune" "build" "-p" name "-j" jobs ]

build: [make "-j%{jobs}%"]
install: [make "install"]

depends: [
"coq" {(>= "8.10" & < "8.14~") | = "dev"}
"dune" {>= "2.5"}
Expand Down