INSTALL_ARGS := $(if $(PREFIX),--prefix $(PREFIX),) BIN := ./_build/default/bin/main.exe default: boot.exe ./boot.exe -j 4 --dev boot.exe: bootstrap.ml ocaml bootstrap.ml install: $(BIN) install $(INSTALL_ARGS) uninstall: $(BIN) uninstall $(INSTALL_ARGS) reinstall: uninstall reinstall test: $(BIN) runtest all-supported-ocaml-versions: $(BIN) build @install @runtest --workspace jbuild-workspace.dev --root . clean: -$(BIN) clean -rm -f ./boot.exe doc: cd doc && sphinx-build . _build .PHONY: default install uninstall reinstall clean test doc