-
Notifications
You must be signed in to change notification settings - Fork 409
/
Makefile
58 lines (39 loc) · 1.05 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
INSTALL_ARGS := $(if $(PREFIX),--prefix $(PREFIX),)
BIN := ./_build/default/bin/main.exe
-include Makefile.dev
default: boot.exe
./boot.exe --dev
release: boot.exe
./boot.exe
boot.exe: bootstrap.ml
ocaml bootstrap.ml
install:
$(BIN) install $(INSTALL_ARGS)
uninstall:
$(BIN) uninstall $(INSTALL_ARGS)
reinstall: uninstall reinstall
test:
$(BIN) runtest --dev
test-js:
$(BIN) build @runtest-js --dev
test-all:
$(BIN) build @runtest @runtest-js --dev
promote:
$(BIN) promote
accept-corrections: promote
all-supported-ocaml-versions:
$(BIN) build --dev @install @runtest --workspace jbuild-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 --dev @doc/runtest --auto-promote
.PHONY: default install uninstall reinstall clean test doc
.PHONY: promote accept-corrections