File: Makefile

package info (click to toggle)
ocaml-odoc 3.1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 14,012 kB
  • sloc: ml: 60,567; javascript: 2,572; sh: 560; makefile: 31
file content (32 lines) | stat: -rw-r--r-- 705 bytes parent folder | download | duplicates (2)
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
.PHONY : build
build :
	dune build

.PHONY : publish-docs
publish-docs:
	dune build @doc
	dune build @docgen || true
	git checkout gh-pages
	rsync -av _build/default/doc/html/odoc/ .

.PHONY : test
test :
	dune runtest

# ODOC_BENCHMARK=true will cause the driver to build a larger set of libraries
# containing more edge cases.
.PHONY : bench
bench:
	@ODOC_BENCHMARK=true dune build @bench

.PHONY : coverage
coverage :
	mkdir -p _coverage
	BISECT_FILE=`pwd`/_coverage/bisect dune build --instrument-with bisect_ppx @test/runtest --no-buffer -j 1 --force || true
	bisect-ppx-report html --coverage-path `pwd`/_coverage
	@echo See _coverage/index.html

.PHONY : clean
clean :
	dune clean
	rm -r _coverage