-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathOMakefile
More file actions
31 lines (23 loc) · 694 Bytes
/
OMakefile
File metadata and controls
31 lines (23 loc) · 694 Bytes
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
.PHONY: profile
section
vmount(-l, src, build)
.SUBDIRS: build
section
vmount(-l, src, debug)
OCAMLOPTFLAGS += -g
.SUBDIRS: debug
if false
section
vmount(-l, src, profile)
OCAMLPACKS[] += bisect
OCAMLFINDFLAGS += -syntax camlp4o
.SUBDIRS: profile
profile: profile/git-fs
# Some commands are here to exercise error paths.
cd profile && sh -c 'rm -f bisect*.out' && ./coverage && \
sh -c 'ocamlfind bisect/bisect-report bisect*.out -html report'
echo "Report available at profile/report/index.html"
else
profile:
echo "Profiling support is disabled. Install ocaml-bisect and edit this OMakefile."
exit 1