-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathmakefile
200 lines (137 loc) · 4.86 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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
SHELL=/bin/bash
# DIRS=$$(ls -d */)
DIRS=4ti2Interface Gauss ExamplesForHomalg GaussForHomalg GradedModules HomalgToCAS GradedRingForHomalg IO_ForHomalg LocalizeRingForHomalg MatricesForHomalg RingsForHomalg SCO ToolsForHomalg Modules homalg
ECHO=echo
MAKE=make
MAPLE_PATH=$(shell command -v maple)
all: doc test
docclean:
-for d in $(DIRS); do $(MAKE) -C $$d docclean; done
build: build_Gauss
ci-prepare:
./ci_prepare
# ci-test_ToricVarieties: https://github.com/homalg-project/ToricVarieties_project/issues/205
ci-test: doc ci-test_LoadSheaves ci-test_all_packages ci-test_alexander ci-test_CAP_project ci-test_D-Modules ci-test_Sheaves ci-test_VirtualCAS
cd .. && homalg_project/gather_performance_data.py
################################
build_Gauss:
ifndef GAP_HOME
$(error environment variable GAP_HOME is not set)
endif
cd Gauss && ./configure $$GAP_HOME && $(MAKE)
ci-test_Gauss: build_Gauss
################################
ci-test_LoadSheaves: ci-prepare build
gap --quitonbreak -c 'Assert( 0, LoadPackage( "Sheaves" ) = true );'
ci-test_alexander: ci-prepare
$(MAKE) -C ../alexander ci-test
ci-test_CAP_project: ci-prepare
/usr/bin/time --quiet --format="%U %S\n%e" --output=../CAP_project/performance.out $(MAKE) -C ../CAP_project ci-test
ci-test_D-Modules: ci-prepare
ifneq ($(MAPLE_PATH),)
$(MAKE) -C ../D-Modules ci-test
endif
ci-test_Sheaves: ci-prepare
$(MAKE) -C ../Sheaves ci-test
ci-test_ToricVarieties: ci-prepare
$(MAKE) -C ../ToricVarieties_project/ToricVarieties ci-test
ci-test_VirtualCAS: ci-prepare
$(MAKE) -C ../VirtualCAS ci-test
# BEGIN PACKAGE JANITOR
################################
doc: doc_homalg doc_4ti2Interface doc_ExamplesForHomalg doc_Gauss doc_GaussForHomalg doc_GradedModules doc_GradedRingForHomalg doc_HomalgToCAS doc_IO_ForHomalg doc_LocalizeRingForHomalg doc_MatricesForHomalg doc_Modules doc_RingsForHomalg doc_SCO doc_ToolsForHomalg
doc_homalg:
$(MAKE) -C homalg doc
doc_4ti2Interface:
$(MAKE) -C 4ti2Interface doc
doc_ExamplesForHomalg:
$(MAKE) -C ExamplesForHomalg doc
doc_Gauss:
$(MAKE) -C Gauss doc
doc_GaussForHomalg:
$(MAKE) -C GaussForHomalg doc
doc_GradedModules:
$(MAKE) -C GradedModules doc
doc_GradedRingForHomalg:
$(MAKE) -C GradedRingForHomalg doc
doc_HomalgToCAS:
$(MAKE) -C HomalgToCAS doc
doc_IO_ForHomalg:
$(MAKE) -C IO_ForHomalg doc
doc_LocalizeRingForHomalg:
$(MAKE) -C LocalizeRingForHomalg doc
doc_MatricesForHomalg:
$(MAKE) -C MatricesForHomalg doc
doc_Modules:
$(MAKE) -C Modules doc
doc_RingsForHomalg:
$(MAKE) -C RingsForHomalg doc
doc_SCO:
$(MAKE) -C SCO doc
doc_ToolsForHomalg:
$(MAKE) -C ToolsForHomalg doc
################################
test: doc test_homalg test_4ti2Interface test_ExamplesForHomalg test_Gauss test_GaussForHomalg test_GradedModules test_GradedRingForHomalg test_HomalgToCAS test_IO_ForHomalg test_LocalizeRingForHomalg test_MatricesForHomalg test_Modules test_RingsForHomalg test_SCO test_ToolsForHomalg
test_homalg:
$(MAKE) -C homalg test
test_4ti2Interface:
$(MAKE) -C 4ti2Interface test
test_ExamplesForHomalg:
$(MAKE) -C ExamplesForHomalg test
test_Gauss:
$(MAKE) -C Gauss test
test_GaussForHomalg:
$(MAKE) -C GaussForHomalg test
test_GradedModules:
$(MAKE) -C GradedModules test
test_GradedRingForHomalg:
$(MAKE) -C GradedRingForHomalg test
test_HomalgToCAS:
$(MAKE) -C HomalgToCAS test
test_IO_ForHomalg:
$(MAKE) -C IO_ForHomalg test
test_LocalizeRingForHomalg:
$(MAKE) -C LocalizeRingForHomalg test
test_MatricesForHomalg:
$(MAKE) -C MatricesForHomalg test
test_Modules:
$(MAKE) -C Modules test
test_RingsForHomalg:
$(MAKE) -C RingsForHomalg test
test_SCO:
$(MAKE) -C SCO test
test_ToolsForHomalg:
$(MAKE) -C ToolsForHomalg test
################################
ci-test_all_packages: ci-test_homalg ci-test_4ti2Interface ci-test_ExamplesForHomalg ci-test_Gauss ci-test_GaussForHomalg ci-test_GradedModules ci-test_GradedRingForHomalg ci-test_HomalgToCAS ci-test_IO_ForHomalg ci-test_LocalizeRingForHomalg ci-test_MatricesForHomalg ci-test_Modules ci-test_RingsForHomalg ci-test_SCO ci-test_ToolsForHomalg
ci-test_homalg:
$(MAKE) -C homalg ci-test
ci-test_4ti2Interface:
$(MAKE) -C 4ti2Interface ci-test
ci-test_ExamplesForHomalg:
$(MAKE) -C ExamplesForHomalg ci-test
ci-test_Gauss:
$(MAKE) -C Gauss ci-test
ci-test_GaussForHomalg:
$(MAKE) -C GaussForHomalg ci-test
ci-test_GradedModules:
$(MAKE) -C GradedModules ci-test
ci-test_GradedRingForHomalg:
$(MAKE) -C GradedRingForHomalg ci-test
ci-test_HomalgToCAS:
$(MAKE) -C HomalgToCAS ci-test
ci-test_IO_ForHomalg:
$(MAKE) -C IO_ForHomalg ci-test
ci-test_LocalizeRingForHomalg:
$(MAKE) -C LocalizeRingForHomalg ci-test
ci-test_MatricesForHomalg:
$(MAKE) -C MatricesForHomalg ci-test
ci-test_Modules:
$(MAKE) -C Modules ci-test
ci-test_RingsForHomalg:
$(MAKE) -C RingsForHomalg ci-test
ci-test_SCO:
$(MAKE) -C SCO ci-test
ci-test_ToolsForHomalg:
$(MAKE) -C ToolsForHomalg ci-test
# END PACKAGE JANITOR