-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
33 lines (25 loc) · 872 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
.PHONY: all clean clean-aux vscode
# Removes a lot of warnings from dune complaining that HOME is not defined.
HOME ?= ${TARGETDIR}
export HOME
INTERPRETER=_build/install/default/bin/wasm_interpreter
all:
dune build @all --verbose
dune build -p wasm_interpreter
ln -f -s ${INTERPRETER} ./wasm_interpreter || echo "Compilation done. The wasm interpreter is located in: ${INTERPRETER}"
clean-aux:
rm theories/*.aux || true
rm theories/.*.aux || true
chmod +w _build/default/theories/.*.aux || true
rm _build/default/theories/*.aux || true
rm _build/default/theories/.*.aux || true
clean: clean-aux
rm -rf _build || true
rm theories/*.vo || true
rm theories/*.glob || true
rm theories/extract.{ml,mli} || true
rm wasm_interpreter || true
vscode: .vscode/settings.json
.vscode/settings.json:
mkdir -p .vscode
echo "$(subst ",\",$(VSCODESETTINGS))" > $@