forked from miking-lang/miking
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
173 lines (135 loc) · 3.24 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
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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
###################################################
# Miking is licensed under the MIT license.
# Copyright (C) David Broman. See file LICENSE.txt
#
# To make the build system platform independent,
# all scripts are done in OCaml instead of being
# dependent on make. If make is installed on
# the system, we just run the batch make.sh file.
###################################################
export prefix
export bindir
export libdir
export ocamllibdir
.PHONY :\
all\
boot\
install-boot\
build\
build-mi\
install\
lite\
lint\
fix\
clean\
uninstall\
test\
test-all\
test-boot-compile\
test-boot-compile-all\
test-compile\
test-compile-all\
test-all-prune-utests\
test-boot-compile-prune-utests\
test-boot-compile-prune-utests-all\
test-compile-prune-utests\
test-compile-prune-utests-all\
test-run\
test-run-all\
test-run-boot\
test-run-boot-all\
test-boot\
test-boot-all\
test-boot-py\
test-par\
test-tune\
test-sundials\
test-ipopt\
test-accelerate\
test-jvm
all: build
boot:
@./make.sh boot
install-boot: boot
@./make.sh install-boot
lite: boot
@./make.sh lite
test: test-boot
build: boot
# Run the complete bootstrapping process to compile `mi`.
@./make.sh
build-mi:
# Build `mi` using the current version in `build`, skipping bootstrapping.
# The result is named `build/mi-tmp`.
@./make.sh build-mi
install: build install-boot
@./make.sh install
lint:
@./make.sh lint
fix:
@./make.sh fix
clean:
@./make.sh clean
uninstall:
@./make.sh uninstall
# Tests everything except some files with very special external dependencies
test-all:\
test-boot-all\
test-compile\
test-run\
test-js\
test-tune\
test-jvm
@./make.sh lint
# The same as test-all but prunes utests whose external dependencies are not met
# on this system
test-all-prune-utests:\
test-boot-all\
test-compile-prune-utests\
test-run\
test-tune
@./make.sh lint
test-boot-compile: boot
@$(MAKE) -s -f test-boot-compile.mk selected
test-boot-compile-all: boot
@$(MAKE) -s -f test-boot-compile.mk all
test-compile: build
@$(MAKE) -s -f test-compile.mk selected
test-compile-all: build
@$(MAKE) -s -f test-compile.mk all
test-boot-compile-prune-utests: boot
@$(MAKE) -s -f test-boot-compile-prune-utests.mk selected
test-boot-compile-prune-utests-all: boot
@$(MAKE) -s -f test-boot-compile-prune-utests.mk all
test-compile-prune-utests: build
@$(MAKE) -s -f test-compile-prune-utests.mk selected
test-compile-prune-utests-all: build
@$(MAKE) -s -f test-compile-prune-utests.mk all
test-run: build
@$(MAKE) -s -f test-run.mk selected
test-run-all: build
@$(MAKE) -s -f test-run.mk all
test-boot-run: boot
@$(MAKE) -s -f test-boot-run.mk selected
test-boot-run-all: boot
@$(MAKE) -s -f test-boot-run.mk all
test-boot: boot
@$(MAKE) -s -f test-boot.mk selected
test-boot-py: boot
@$(MAKE) -s -f test-boot.mk py
test-boot-all: boot
@$(MAKE) -s -f test-boot.mk all
test-par: build
@$(MAKE) -s -f test-par.mk
test-tune: build
@$(MAKE) -s -f test-tune.mk
test-sundials: build
@$(MAKE) -s -f test-sundials.mk
test-ipopt: build
@$(MAKE) -s -f test-ipopt.mk
test-accelerate: build
@$(MAKE) -s -f test-accelerate.mk
test-jvm: build
@$(MAKE) -s -f test-jvm.mk
test-js: build
@$(MAKE) -s -f test-js.mk