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
|
2018-02-07 12:09:24 +00:00
|
|
|
./boot.exe --dev
|
2017-02-23 09:45:09 +00:00
|
|
|
|
2017-07-18 09:17:53 +00:00
|
|
|
release: boot.exe
|
2018-02-07 12:09:24 +00:00
|
|
|
./boot.exe
|
2017-07-18 09:17:53 +00:00
|
|
|
|
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-02-07 14:20:56 +00:00
|
|
|
test-js:
|
|
|
|
$(BIN) build @runtest-js --dev
|
|
|
|
|
|
|
|
test-all:
|
|
|
|
$(BIN) build @runtest @runtest-js --dev
|
|
|
|
|
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:
|
2018-05-02 11:56:12 +00:00
|
|
|
$(BIN) build --dev @install @runtest --workspace dune-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
|
|
|
|
2018-03-06 14:56:24 +00:00
|
|
|
distclean: clean
|
|
|
|
rm -f src/setup.ml
|
|
|
|
|
2017-05-18 20:15:25 +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
|
|
|
|
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
|
|
|
|
2018-03-13 19:06:34 +00:00
|
|
|
update-sexp-parser:
|
|
|
|
$(BIN) build --dev @update-sexp-parser --auto-promote
|
|
|
|
|
2017-05-18 20:15:25 +00:00
|
|
|
.PHONY: default install uninstall reinstall clean test doc
|
2018-03-14 15:02:45 +00:00
|
|
|
.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
|
2018-03-14 15:12:19 +00:00
|
|
|
topkg opam pkg --dist-uri='$(DIST_URI)'
|
|
|
|
topkg opam submit --dist-uri='$(DIST_URI)'
|