forked from OCamlPro/superbol-studio-oss
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
62 lines (43 loc) · 1.2 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
59
60
61
# Generated by "drom project"
.PHONY: all build build-deps fmt fmt-check install dev-deps test
.PHONY: clean distclean
DEV_DEPS := merlin ocamlformat odoc
# Use these non-generated files to include more rules here (and
# Makefile.trailer at the end)
-include Makefile.header
-include Makefile.config
all: build
build:
./scripts/before.sh build
opam exec -- dune build @install
./scripts/copy-bin.sh superbol-vscode-extension polka-js-stubs interop-js-stubs node-js-stubs vscode-js-stubs vscode-languageclient-js-stubs vscode-package-json vscode-json
./scripts/after.sh build
build-deps:
if ! [ -e _opam ]; then \
opam switch create . 4.13.0 ; \
fi
opam install ./opam/*.opam --deps-only
fmt:
opam exec -- dune build @fmt --auto-promote
fmt-check:
opam exec -- dune build @fmt
install:
opam pin -y --no-action -k path .
opam install -y .
opam:
opam pin -k path .
uninstall:
opam uninstall .
dev-deps:
opam install ./opam/*.opam --deps-only --with-doc --with-test
test:
./scripts/before.sh test
opam exec -- dune build @runtest
./scripts/after.sh test
clean:
rm -rf _build
./scripts/after.sh clean
distclean: clean
rm -rf _opam _drom
./scripts/after.sh distclean
-include Makefile.trailer