forked from aantron/bisect_ppx
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
59 lines (50 loc) · 1.42 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
.PHONY : build
build :
jbuilder build --dev
.PHONY : test
test : build
jbuilder runtest --dev --no-buffer -j 1
.PHONY : clean
clean :
jbuilder clean
for TEST in `ls -d test/usage/*` ; \
do \
make -wC $$TEST clean ; \
done
INSTALLED_ENVIRONMENT := \
OCAMLPATH=`pwd`/_build/install/default/lib \
PATH=`pwd`/_build/install/default/bin:$$PATH
.PHONY : usage
usage : build
for TEST in `ls -d test/usage/*` ; \
do \
$(INSTALLED_ENVIRONMENT) make -wC $$TEST || exit 2 ; \
done
.PHONY : performance
performance : build
jbuilder build --dev test/performance/test_performance.exe
cd _build/default/test/ && \
performance/test_performance.exe -runner sequential
PRESERVE := _build/default/test/_preserve
.PHONY : save-test-output
save-test-output :
(cd $(PRESERVE) ; find . -name '*reference.*') \
| xargs -I FILE cp $(PRESERVE)/FILE test/FILE
# Currently unused; awaiting restoration of self-instrumentation.
GH_PAGES := gh-pages
.PHONY : gh-pages
gh-pages:
false
ocamlbuild $(OCAMLBUILD_FLAGS) postprocess.byte
make -C tests coverage
rm -rf $(GH_PAGES)
mkdir -p $(GH_PAGES)
omd README.md | _build/doc/postprocess.byte > $(GH_PAGES)/index.html
cd $(GH_PAGES) && \
git init && \
git remote add github [email protected]:aantron/bisect_ppx.git && \
mkdir -p coverage && \
cp -r ../tests/_report/* coverage/ && \
git add -A && \
git commit -m 'Bisect_ppx demonstration' && \
git push -uf github master:gh-pages