summaryrefslogtreecommitdiff
path: root/src/Makefile
blob: 4e6257d60bf4a9dea2a19d2bd425228d3d1d30e2 (plain)
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
.PHONY: all sail test clean doc lib power test_power test_idempotence

all: sail lib doc

full: sail lib power doc test

sail:
	ocamlbuild sail.native sail_lib.cma sail_lib.cmxa

test: sail
	ocamlbuild test/run_tests.native
	./run_tests.native

power: sail
	ocamlbuild test/run_power.native

test_power: power
	#../../../rsem/idl/power/binary/run.sh
	./run_power.native --file ../../../rsem/idl/power/binary/main.bin

test_idempotence: sail
	@cd test; for file in *.sail; do \
		./idempotence.sh $$file; echo ;\
	done

clean:
	-ocamlbuild -clean
	-rm -rf _build *.native
	-rm -rf html-doc
	-rm -rf tex-doc
	-rm -rf lem lib
	-rm -rf sail.docdir

doc:
	ocamlbuild sail.docdir/index.html

lib:
	ocamlbuild pretty_print.cmxa pretty_print.cma