INSTALL_ARGS := $(if $(PREFIX),--prefix $(PREFIX),) BIN := ./_build/default/bin/main_dune.exe -include Makefile.dev default: boot.exe ./boot.exe release: boot.exe ./boot.exe --release boot.exe: bootstrap.ml ocaml bootstrap.ml install: $(BIN) install $(INSTALL_ARGS) dune uninstall: $(BIN) uninstall $(INSTALL_ARGS) dune reinstall: uninstall reinstall test: $(BIN) runtest test-js: $(BIN) build @runtest-js test-all: $(BIN) build @runtest @runtest-js promote: $(BIN) promote accept-corrections: promote all-supported-ocaml-versions: $(BIN) build @install @runtest --workspace dune-workspace.dev --root . clean: $(BIN) clean rm -f ./boot.exe $(wildcard ./bootstrap.cmi ./bootstrap.cmo ./bootstrap.exe) distclean: clean rm -f src/setup.ml doc: cd doc && sphinx-build . _build livedoc: cd doc && sphinx-autobuild . _build \ -p 8888 -q --host $(shell hostname) -r '\.#.*' update-jbuilds: $(BIN) $(BIN) build @doc/runtest --auto-promote .PHONY: default install uninstall reinstall clean test doc .PHONY: promote accept-corrections opam-release VERSION ?= $(shell git describe --tags --abbrev=0) DIST_URI = https://github.com/ocaml/dune/releases/download/$(VERSION)/jbuilder-$(subst +,.,$(VERSION)).tbz opam-release: topkg distrib --skip-build --skip-lint --skip-tests topkg publish distrib --verbose topkg opam pkg --dist-uri='$(DIST_URI)' topkg opam submit --dist-uri='$(DIST_URI)'