dune/Makefile

67 lines
1.4 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_dune.exe
2016-12-02 13:54:32 +00:00
-include Makefile.dev
default: boot.exe
./boot.exe
release: boot.exe
./boot.exe --release
boot.exe: bootstrap.ml
ocaml bootstrap.ml
2016-12-02 13:54:32 +00:00
install:
$(BIN) install $(INSTALL_ARGS) dune
2016-12-02 13:54:32 +00:00
uninstall:
$(BIN) uninstall $(INSTALL_ARGS) dune
2016-12-02 13:54:32 +00:00
reinstall: uninstall reinstall
test:
$(BIN) runtest
2018-02-07 14:20:56 +00:00
test-js:
$(BIN) build @runtest-js
2018-02-07 14:20:56 +00:00
test-all:
$(BIN) build @runtest @runtest-js
2018-02-07 14:20:56 +00:00
promote:
$(BIN) promote
accept-corrections: promote
2017-02-27 15:04:49 +00:00
all-supported-ocaml-versions:
$(BIN) build @install @runtest --workspace dune-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
distclean: clean
rm -f src/setup.ml
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 @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
2018-03-14 15:12:19 +00:00
topkg opam pkg --dist-uri='$(DIST_URI)'
topkg opam submit --dist-uri='$(DIST_URI)'