dune/Makefile

56 lines
1.0 KiB
Makefile
Raw Normal View History

2017-02-27 12:06:59 +00:00
INSTALL_ARGS := $(if $(PREFIX),--prefix $(PREFIX),)
BIN := ./_build/default/bin/main.exe
2016-12-02 13:54:32 +00:00
-include Makefile.dev
default: boot.exe
./boot.exe --dev
release: boot.exe
./boot.exe
boot.exe: bootstrap.ml
ocaml bootstrap.ml
2016-12-02 13:54:32 +00:00
install:
2017-02-27 12:06:59 +00:00
$(BIN) install $(INSTALL_ARGS)
2016-12-02 13:54:32 +00:00
uninstall:
2017-02-27 12:06:59 +00:00
$(BIN) uninstall $(INSTALL_ARGS)
2016-12-02 13:54:32 +00:00
reinstall: uninstall reinstall
test:
$(BIN) runtest --dev
2018-02-07 14:20:56 +00:00
test-js:
$(BIN) build @runtest-js --dev
test-all:
$(BIN) build @runtest @runtest-js --dev
promote:
$(BIN) promote
accept-corrections: promote
2017-02-27 15:04:49 +00:00
all-supported-ocaml-versions:
$(BIN) build --dev @install @runtest --workspace jbuild-workspace.dev --root .
2017-02-27 15:04:49 +00:00
2016-12-02 13:54:32 +00:00
clean:
$(BIN) clean
rm -f ./boot.exe $(wildcard ./bootstrap.cmi ./bootstrap.cmo ./bootstrap.exe)
2016-12-02 13:54:32 +00:00
doc:
cd doc && sphinx-build . _build
2018-02-27 10:25:04 +00:00
livedoc:
cd doc && sphinx-autobuild . _build \
2018-02-27 11:06:45 +00:00
-p 8888 -q --host $(shell hostname) -r '\.#.*'
2018-02-27 10:25:04 +00:00
update-jbuilds: $(BIN)
$(BIN) build --dev @doc/runtest --auto-promote
.PHONY: default install uninstall reinstall clean test doc
.PHONY: promote accept-corrections