forked from realworldocaml/book
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
63 lines (50 loc) · 954 Bytes
/
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
59
60
61
62
63
.PHONY: all clean dep publish promote test test-all docker depext \
duniverse-init duniverse-upgrade
DUNIVERSE ?= duniverse
DEPS =\
async \
atdgen \
base \
cmdliner \
cohttp-async \
conf-ncurses \
core \
core_bench \
ctypes \
ctypes-foreign \
fmt \
lambdasoup \
mdx \
ocaml-compiler-libs \
ppx_jane \
re \
sexp_pretty \
textwrap \
yojson
# these do not exist in opam-repository yet
DUNIVERSE_SPECIFIC_DEPS = tls-lwt
all:
@dune build @site @pdf
@echo The site and the pdf have been generated in _build/default/static/
test:
dune runtest
test-all:
dune build @runtest-all
dep:
dune exec -- rwo-dep
promote:
dune promote
clean:
dune clean
docker:
docker build -t ocaml/rwo .
depext:
opam depext -y $(DEPS)
duniverse-init:
$(DUNIVERSE) init \
--pin mdx,https://github.com/realworldocaml/mdx.git,master \
rwo \
$(DEPS) $(DUNIVERSE_SPECIFIC_DEPS)
duniverse-upgrade: duniverse-init
rm -rf duniverse/
$(DUNIVERSE) pull --no-cache