2017-02-27 12:06:59 +00:00
|
|
|
INSTALL_ARGS := $(if $(PREFIX),--prefix $(PREFIX),)
|
2017-03-01 16:09:02 +00:00
|
|
|
BIN := ./_build/default/bin/main.exe
|
2016-12-02 13:54:32 +00:00
|
|
|
|
2017-08-29 23:43:31 +00:00
|
|
|
-include Makefile.dev
|
|
|
|
|
2017-02-23 09:45:09 +00:00
|
|
|
default: boot.exe
|
2017-02-24 12:19:02 +00:00
|
|
|
./boot.exe -j 4 --dev
|
2017-02-23 09:45:09 +00:00
|
|
|
|
2017-07-18 09:17:53 +00:00
|
|
|
release: boot.exe
|
|
|
|
./boot.exe -j 4
|
|
|
|
|
2017-02-23 09:45:09 +00:00
|
|
|
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
|
|
|
|
|
2017-03-13 08:10:33 +00:00
|
|
|
test:
|
2017-06-09 11:39:28 +00:00
|
|
|
$(BIN) runtest --dev
|
2017-03-13 08:10:33 +00:00
|
|
|
|
2018-01-18 11:32:20 +00:00
|
|
|
promote:
|
|
|
|
$(BIN) promote
|
|
|
|
|
|
|
|
accept-corrections: promote
|
|
|
|
|
2017-02-27 15:04:49 +00:00
|
|
|
all-supported-ocaml-versions:
|
2017-06-09 11:39:28 +00:00
|
|
|
$(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:
|
2017-06-02 17:25:20 +00:00
|
|
|
$(BIN) clean
|
2017-08-16 15:08:03 +00:00
|
|
|
rm -f ./boot.exe $(wildcard ./bootstrap.cmi ./bootstrap.cmo ./bootstrap.exe)
|
2016-12-02 13:54:32 +00:00
|
|
|
|
2017-05-18 20:15:25 +00:00
|
|
|
doc:
|
|
|
|
cd doc && sphinx-build . _build
|
|
|
|
|
2017-06-02 17:25:20 +00:00
|
|
|
update-jbuilds: $(BIN)
|
2018-01-18 11:32:20 +00:00
|
|
|
$(BIN) build --dev @doc/runtest --auto-promote
|
2017-08-29 23:45:47 +00:00
|
|
|
|
2017-10-29 09:40:48 +00:00
|
|
|
.DEFAULT_GOAL := default
|
2017-05-18 20:15:25 +00:00
|
|
|
.PHONY: default install uninstall reinstall clean test doc
|
2018-01-18 11:32:20 +00:00
|
|
|
.PHONY: promote accept-corrections
|