2017-03-15 23:49:02 +00:00
|
|
|
INSTALL_ARGS := $(if $(PREFIX),--prefix $(PREFIX),)
|
2012-10-17 09:33:37 +00:00
|
|
|
|
2017-03-15 23:49:02 +00:00
|
|
|
.PHONY: all
|
|
|
|
all:
|
2019-01-14 18:50:32 +00:00
|
|
|
dune build
|
2012-10-17 09:33:37 +00:00
|
|
|
|
2017-03-15 23:49:02 +00:00
|
|
|
.PHONY: install
|
|
|
|
install:
|
2019-01-14 18:50:32 +00:00
|
|
|
dune install $(INSTALL_ARGS)
|
2012-10-17 09:33:37 +00:00
|
|
|
|
2017-03-15 23:49:02 +00:00
|
|
|
.PHONY: uninstall
|
|
|
|
uninstall:
|
2019-01-14 18:50:32 +00:00
|
|
|
dune uninstall $(INSTALL_ARGS)
|
2012-10-17 09:33:37 +00:00
|
|
|
|
2017-03-15 23:49:02 +00:00
|
|
|
.PHONY: reinstall
|
|
|
|
reinstall:
|
|
|
|
$(MAKE) uninstall
|
|
|
|
$(MAKE) install
|
2012-10-17 09:33:37 +00:00
|
|
|
|
2017-05-26 13:43:45 +00:00
|
|
|
.PHONY: examples
|
|
|
|
examples:
|
2019-01-14 18:50:32 +00:00
|
|
|
dune build @examples
|
2017-05-26 13:43:45 +00:00
|
|
|
|
2017-03-15 23:49:02 +00:00
|
|
|
.PHONY: test
|
|
|
|
test:
|
2019-01-14 18:50:32 +00:00
|
|
|
dune runtest
|
2012-10-17 09:33:37 +00:00
|
|
|
|
2017-03-15 23:49:02 +00:00
|
|
|
.PHONY: all-supported-ocaml-versions
|
|
|
|
all-supported-ocaml-versions:
|
2019-01-14 18:50:32 +00:00
|
|
|
dune build --workspace dune-workspace.dev
|
2012-10-17 09:33:37 +00:00
|
|
|
|
2017-03-15 23:49:02 +00:00
|
|
|
.PHONY: cinaps
|
|
|
|
cinaps:
|
|
|
|
cinaps -styler ocp-indent -i src/migrate_parsetree_versions.ml*
|
|
|
|
cinaps -styler ocp-indent -i src/migrate_parsetree_40?_40?.ml*
|
2012-10-17 09:33:37 +00:00
|
|
|
|
2017-03-15 23:49:02 +00:00
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
|
|
|
rm -rf _build *.install
|
|
|
|
find . -name .merlin -delete
|
2024-02-06 10:28:51 +00:00
|
|
|
|
|
|
|
.PHONY: create-switches
|
|
|
|
create-switches:
|
|
|
|
opam switch create utop-412 4.12.0
|
|
|
|
opam switch create utop-413 4.13.1
|
|
|
|
opam switch create utop-414 4.14.1
|
|
|
|
opam switch create utop-500 5.0.0
|
|
|
|
opam switch create utop-510 5.1.0
|
|
|
|
opam switch create utop-520 5.2.0+trunk
|
|
|
|
|
|
|
|
.PHONY: install-switches
|
|
|
|
install-switches:
|
|
|
|
opam install --switch utop-412 --deps-only --with-test -y .
|
|
|
|
opam install --switch utop-413 --deps-only --with-test -y .
|
|
|
|
opam install --switch utop-414 --deps-only --with-test -y .
|
|
|
|
opam install --switch utop-500 --deps-only --with-test -y .
|
|
|
|
opam install --switch utop-510 --deps-only --with-test -y .
|
|
|
|
opam install --switch utop-520 --deps-only --with-test -y .
|