forked from BinaryAnalysisPlatform/bap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
55 lines (39 loc) · 1.09 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
SETUP = ocaml setup.ml -quiet
CONFIGURE = ./configure
PIQI=piqi
OCI=ocp-indent
build: setup.data setup.ml
$(SETUP) -build $(BAPBUILDFLAGS)
doc: setup.data build
$(SETUP) -doc $(BAPDOCFLAGS)
test: setup.data build
$(SETUP) -test $(BAPTESTFLAGS)
all: setup.data
$(SETUP) -all $(BAPALLFLAGS)
install: setup.data
$(SETUP) -install $(BAPINSTALLFLAGS)
uninstall: setup.data
$(SETUP) -uninstall $(BAPUNINSTALLFLAGS)
reinstall: setup.data
$(SETUP) -reinstall $(BAPREINSTALLFLAGS)
clean: setup.data
$(SETUP) -clean $(BAPCLEANFLAGS)
distclean: setup.data
$(SETUP) -distclean $(BAPDISTCLEANFLAGS)
setup.data: *.in _oasis
$(CONFIGURE) $(BAPCONFIGUREFLAGS)
configure:
$(CONFIGURE) $(BAPCONFIGUREFLAGS)
.PHONY: configure
.PHONY: clean disclean reinstall
.PHONY: check
check: check-piqi check-ocp-indent
.PHONY: check-piqi
check-piqi: *.piqi
for piqifile in $^; do $(PIQI) check --strict $$piqifile; done
.PHONY: check-ocp-indent
check-ocp-indent: *.ml
for mlfile in $^; do $(OCI) $$mlfile | diff - $$mlfile; done
.PHONY: auto-ocp-indent
auto-ocp-indent: *.ml
for mlfile in $^; do $(OCI) -i $$mlfile; done