-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
36 lines (26 loc) · 785 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
MODULES=author src/cc_card src/player src/action src/property src/newboard src/command src/state src/main src/render
OBJECTS=$(MODULES:=.cmo)
MLS=$(MODULES:=.ml)
MLIS=$(MODULES:=.mli)
OCAMLBUILD=ocamlbuild -use-ocamlfind
default: build
utop
build:
$(OCAMLBUILD) $(OBJECTS)
test:
$(OCAMLBUILD) -tag 'debug' src/test.byte && ./test.byte
graphics:
ocamlbuild -use-ocamlfind -pkg graphics src/render.native --
check:
bash checkenv.sh
play:
$(OCAMLBUILD) src/main.byte && ./main.byte
clean:
ocamlbuild -clean
zip:
zip monopoly.zip *.ml* *.json src/*.ml* assets/*GIF .ocamlinit .merlin *.md _tags Makefile
docs: docs-public
docs-public: _build/src
mkdir -p doc.public
ocamlfind ocamldoc -I _build/src -package yojson,ANSITerminal \
-html -stars -d doc.public $(MLIS)