-
Notifications
You must be signed in to change notification settings - Fork 12
/
Makefile
45 lines (35 loc) · 1.22 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
#
# Just a simple makefile for helping people get into the project
build:
opam exec -- dune external-lib-deps --missing @build
opam exec -- dune build
install:
opam install . --deps-only --working-dir --with-test --with-doc
uninstall:
opam uninstall . --working-dir --with-test --with-doc
clean:
dune clean
test:
opam exec -- dune external-lib-deps --missing @runtest
opam exec -- dune runtest
# For finding the errors that should be in parser.messages but are not
# because parser.mly has been updated and some new errors appeared.
missing:
opam exec -- dune external-lib-deps --missing @src/lib/missing
opam exec -- dune build @src/lib/missing
doc:
opam exec -- dune external-lib-deps --missing @doc
opam exec -- dune build @doc
#
# These targets aim to build the java GUI in support/gui/
# It basically calls `./gradlew` (which is like `make` but for java)
# and checks that all the necessary
#
build-gui: build check-requirements check-opam-packages
cd support/gui/ && ./gradlew build
@echo "Done! Now you can run touist with 'make run-gui'"
run-gui: build-gui
cd support/gui/ && ./gradlew run
clean-gui:
cd support/gui/ && ./gradlew clean
.PHONY: build-gui clean-gui run-gui missing test clean uninstall install build