Debian Codegraph @

examples/02-subdirs/Makefile

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