Commit c66e4727 authored by POTTIER Francois's avatar POTTIER Francois
Browse files

Improve [make versions].

parent b68a5139
......@@ -2,3 +2,4 @@ _build
.merlin
*.install
*~
dune-workspace.versions
......@@ -29,14 +29,32 @@ test:
@ dune build @runtest
# [make versions] compiles Fix under many versions of OCaml, whose
# list is specified in the file dune-workspace.versions.
# list is specified below.
# This requires appropriate opam switches to exist. A missing switch
# can be created like this:
# opam switch create 4.03.0
VERSIONS := \
4.03.0 \
4.04.2 \
4.05.0 \
4.06.1 \
4.07.1 \
4.08.1 \
4.09.1 \
4.09.0+bytecode-only \
4.10.0 \
4.11.1 \
4.12.0 \
4.13.0 \
.PHONY: versions
versions:
@(echo "(lang dune 2.0)" && \
for v in $(VERSIONS) ; do \
echo "(context (opam (switch $$v)))" ; \
done) > dune-workspace.versions
@ dune build --workspace dune-workspace.versions -p $(THIS)
.PHONY: install
......
(lang dune 2.0)
(context (opam (switch 4.03.0)))
(context (opam (switch 4.04.2)))
(context (opam (switch 4.05.0)))
(context (opam (switch 4.06.1)))
(context (opam (switch 4.07.1)))
(context (opam (switch 4.08.1)))
(context (opam (switch 4.09.1)))
(context (opam (switch 4.09.0+bytecode-only)))
(context (opam (switch 4.10.0)))
(context (opam (switch 4.11.1)))
(context (opam (switch 4.12.0)))
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment