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

all: sail test lib power doc

sail:
	ocamlbuild sail.native

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
	-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