Debian Codegraph @

examples/01-simple/Makefile

raw
1 #
2 # Pure OCaml, no packages, no _tags
3 #
4
5 # bin-annot is required for Merlin and other IDE-like tools
6
7 .PHONY: all clean byte native profile debug test
8
9 OCB_FLAGS = -tag bin_annot
10 OCB = ocamlbuild $(OCB_FLAGS)
11
12 all: native byte # profile debug
13
14 clean:
15 $(OCB) -clean
16
17 native:
18 $(OCB) main.native
19
20 byte:
21 $(OCB) main.byte
22
23 profile:
24 $(OCB) -tag profile main.native
25
26 debug:
27 $(OCB) -tag debug main.byte
28
29 test: native
30 ./main.native "OCaml" "OCamlBuild" "users"
31