-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (28 loc) · 716 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
SRCFILES = gen/*.ml bin/*.ml lib/*.ml lib/*.mli lib-tests/*.ml
OCPINDENT = ocp-indent \
--inplace \
$(SRCFILES)
OPAMFILES = *.opam
PATCH_OPAMFILES = sed -i 's/"@runtest"\s*{with-test}//g' $(OPAMFILES)
.PHONY: all
all:
./update-stramon-version-string.sh
dune build @all
.PHONY: release-static
release-static :
./update-stramon-version-string.sh
OCAMLPARAM='_,ccopt=-static' dune build --release bin/stramon.exe
mkdir -p statically-linked
cp _build/default/bin/stramon.exe statically-linked/stramon
.PHONY: lib-tests
lib-tests :
OCAMLRUNPARAM=b dune exec lib-tests/main.exe --no-buffer --force
.PHONY: doc
doc:
dune build @doc
.PHONY: format
format :
$(OCPINDENT)
.PHONY : clean
clean:
dune clean