forked from chsticksel/kind2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.in
120 lines (88 loc) · 2.89 KB
/
Makefile.in
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
# DO NOT CHANGE THIS FILE!
# If you want to change the Makefile, edit Makefile.in instead
# @configure_input@
LOCAL_BINDIR=$(CURDIR)/bin
LOCAL_DOCDIR=$(CURDIR)/ocamldoc
LOCAL_REGRESSIONDIR=$(CURDIR)/tests/regression
LOCAL_ALLDOCDIR=$(CURDIR)/doc
LOCAL_USRDOCDIR=$(CURDIR)/doc/usr
package=@PACKAGE_NAME@
version=@PACKAGE_VERSION@
tarname=@PACKAGE_TARNAME@
distdir=$(tarname)-$(version).`date +%Y.%m.%d`
prefix=@prefix@
exec_prefix=@exec_prefix@
bindir=@bindir@
bin_suffix=@bin_suffix@
install_files=@PACKAGE_NAME@ lfsc-extractor cvc4_lfsc_check
# Arguments for regression tests: timeout
ARGS="--timeout 42"
# pass variables to sub-makes
export
all: @PACKAGE_NAME@
.PHONY: ocamlczmq @PACKAGE_NAME@ @PACKAGE_NAME@-prof @PACKAGE_NAME@-top @PACKAGE_NAME@-doc
ocamlczmq:
cd ocamlczmq && ./build.sh
@PACKAGE_NAME@:
make -C src
mkdir -p $(LOCAL_BINDIR)
cp -f src/_build/@[email protected] $(LOCAL_BINDIR)/$@
@PACKAGE_NAME@-prof:
make -C src $@
mkdir -p $(LOCAL_BINDIR)
cp -f src/_build/@[email protected] $(LOCAL_BINDIR)/$@
@PACKAGE_NAME@-top:
make -C src $@
mkdir -p $(LOCAL_BINDIR)
cp -f src/_build/@[email protected] $(LOCAL_BINDIR)/$@
@PACKAGE_NAME@-terms-top:
make -C src $@
mkdir -p $(LOCAL_BINDIR)
cp -f src/_build/@[email protected] $(LOCAL_BINDIR)/$@
lustre2kind:
make -C src $@
mkdir -p $(LOCAL_BINDIR)
cp -f src/_build/lustre2kind.native $(LOCAL_BINDIR)/$@
bin/cvc4_lfsc_check:
timeout 1 sleep 2; sed "s/@TOCODE@/"$$?"/g" scripts/cvc4_lfsc_check > $@
chmod +x $@
lfsc-extractor: bin/cvc4_lfsc_check
make -C src $@
mkdir -p $(LOCAL_BINDIR)
cp -f src/_build/lfscExtractor.native $(LOCAL_BINDIR)/$@
@PACKAGE_NAME@-doc:
make -C src $@
mkdir -p $(LOCAL_DOCDIR)
cp -Rf src/_build/@[email protected]/* $(LOCAL_DOCDIR)
mkdir -p $(LOCAL_DOCDIR)/include
cp -Rf src/doc/include/* $(LOCAL_DOCDIR)/include
.PHONY: install clean-@PACKAGE_NAME@ clean-ocamlczmq clean test doc
install:
mkdir -p ${bindir}
for i in $(install_files); do \
if [ -f $(addprefix $(LOCAL_BINDIR)/,$$i) ]; then \
install -m 0755 $(addprefix $(LOCAL_BINDIR)/,$$i) $(addsuffix ${bin_suffix},$(addprefix ${bindir}/,$$i)); \
fi \
done
if [ -n "${bin_suffix}" ]; then echo "Suffix for binaries is ${bin_suffix}"; fi
test: all
./tests/run.sh $(LOCAL_REGRESSIONDIR) $(LOCAL_BINDIR)/kind2 "${ARGS}"
doc:
make -C $(LOCAL_USRDOCDIR)
cp $(LOCAL_USRDOCDIR)/doc.pdf $(LOCAL_ALLDOCDIR)/user_documentation.pdf
cp $(LOCAL_USRDOCDIR)/doc.html $(LOCAL_ALLDOCDIR)/user_documentation.html
doc-sync:
make -C $(LOCAL_USRDOCDIR) update
doc-clean:
make -C $(LOCAL_USRDOCDIR) clean
clean-@PACKAGE_NAME@:
make -C src clean
clean-ocamlczmq:
make -C ocamlczmq clean
rm -f $(LOCAL_ALLDOCDIR)/*.pdf
clean: clean-@PACKAGE_NAME@ clean-ocamlczmq doc-clean
# Remake this Makefile if configuration has changed
Makefile: Makefile.in ./config.status
./config.status
./config.status: ./configure
./config.status --recheck