-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
216 lines (194 loc) · 4.49 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
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
MODULES := Peano \
Coq/Arith/Le \
Coq/Arith/Lt \
Coq/Arith/Plus \
Coq/Arith/Gt \
Coq/Logic/Decidable \
Coq/Arith/Compare_dec \
\
Notations \
NotationsUtf8 \
Common \
\
Category/Core \
Functor/Core \
\
Category/Equality \
Category/Morphisms \
Category/UnivalentCategory \
Category/StrictCategory \
Category/Objects \
Category/Duals \
Category \
\
Functor/Equality \
Functor/Identity \
Functor/Composition \
Functor/CompositionLaws \
Functor/Duals \
Functor \
\
NaturalTransformation/Core \
NaturalTransformation/Equality \
NaturalTransformation/Identity \
NaturalTransformation/Composition \
NaturalTransformation/CompositionLaws \
NaturalTransformation/Duals \
NaturalTransformation \
\
Category/Product \
Functor/Product \
NaturalTransformation/Product \
\
Category/Sum \
Functor/Sum \
NaturalTransformation/Sum \
\
Subcategory/Sigma \
Subcategory/SigmaObjects \
Subcategory/SigmaMorphisms \
Subcategory/Wide \
Subcategory/Full \
Subcategory \
\
SetCategory \
\
ComputableCat \
\
FunctorCategory \
FunctorCategory/Morphisms \
\
Functor/Product/ProductFunctor \
\
CategoryOfSections \
\
NaturalTransformation/Isomorphisms \
\
Functor/Pointwise \
Functor/Pointwise/Properties \
NaturalTransformation/Pointwise \
\
ExponentialLaws/Law1/Functors \
ExponentialLaws/Law2/Functors \
ExponentialLaws/Law3/Functors \
ExponentialLaws/Law4/Functors \
ExponentialLaws/Law1/Law \
ExponentialLaws/Law2/Law \
ExponentialLaws/Law3/Law \
ExponentialLaws/Law4/Law \
ExponentialLaws/Law0 \
ExponentialLaws/Law1 \
ExponentialLaws/Law2 \
ExponentialLaws/Law3 \
ExponentialLaws/Law4 \
ExponentialLaws \
\
NaturalTransformation/Composition/Functorial \
Functor/Composition/Functorial \
\
Groupoid \
Groupoid/Functors \
Groupoid/Duals \
DiscreteCategory \
Discrete/Duals \
IndiscreteCategory \
BoolCategory \
NatCategory \
NatCategory/Duals \
\
ProductLaws \
\
InitialTerminalCategory \
\
Cat \
Cat/Morphisms \
\
FunctorCategory/Functorial \
\
DualFunctor \
\
Pseudofunctor/Core \
Pseudofunctor/FromFunctor \
Pseudofunctor \
\
Comma/CommaCategory \
Comma/Duals \
Comma/Projection \
Comma/InducedFunctors \
\
UniversalProperties \
\
IsGroupoid \
\
Grothendieck/ToSet \
Grothendieck \
Grothendieck/PseudofunctorToCat \
Grothendieck/ToCat \
\
DependentProduct \
\
NaturalNumbersObject \
Hom \
\
Functor/Attributes \
\
Adjoint/UnitCounit \
Adjoint/UnitCounitCoercions \
Adjoint/Hom \
Adjoint/Duals \
Adjoint/Identity \
Adjoint/Composition \
Adjoint/Equality \
Adjoint/UniversalMorphisms \
Adjoint \
\
Utf8
VS := $(MODULES:%=theories/Categories/%.v)
VDS := $(MODULES:%=theories/Categories/%.v.d)
V = 0
SILENCE_HOQC_0 := @echo \"HOQC $$<\"; #
SILENCE_HOQC_1 :=
SILENCE_HOQC = $(SILENCE_HOQC_$(V))
SILENCE_COQDEP_0 := @echo \"COQDEP $$<\"; #
SILENCE_COQDEP_1 :=
SILENCE_COQDEP = $(SILENCE_COQDEP_$(V))
NEW_TIME_FILE=time-of-build-after.log
OLD_TIME_FILE=time-of-build-before.log
BOTH_TIME_FILE=time-of-build-both.log
NEW_PRETTY_TIME_FILE=time-of-build-after-pretty.log
SINGLE_TIME_FILE=time-of-build.log
SINGLE_PRETTY_TIME_FILE=time-of-build-pretty.log
TIME_SHELF_NAME=time-of-build-shelf
COQDOCFLAGS=--external http://hott.github.io/HoTT/coqdoc-html/ HoTT -interpolate -utf8
HOQC=$(shell readlink -f ./HoTT/hoqc)
.PHONY: coq clean pretty-timed pretty-timed-files html HoTT
coq: Makefile.coq
$(MAKE) -f Makefile.coq
html: Makefile.coq
$(MAKE) -f Makefile.coq html
pretty-timed-diff:
bash ./etc/make-each-time-file.sh "$(MAKE)" "$(NEW_TIME_FILE)" "$(OLD_TIME_FILE)"
$(MAKE) combine-pretty-timed
combine-pretty-timed:
python ./etc/make-both-time-files.py "$(NEW_TIME_FILE)" "$(OLD_TIME_FILE)" "$(BOTH_TIME_FILE)"
cat "$(BOTH_TIME_FILE)"
@echo
pretty-timed:
bash ./etc/make-each-time-file.sh "$(MAKE) SEMICOLON=;" "$(SINGLE_TIME_FILE)"
python ./etc/make-one-time-file.py "$(SINGLE_TIME_FILE)" "$(SINGLE_PRETTY_TIME_FILE)"
cat "$(SINGLE_PRETTY_TIME_FILE)"
@echo
Makefile.coq: Makefile $(VS) HoTT
coq_makefile COQC = "$(SILENCE_HOQC)\$$(TIMER) \"$(HOQC)\"" COQDEP = "$(SILENCE_COQDEP)\"\$$(COQBIN)coqdep\" -c" COQDOCFLAGS = "$(COQDOCFLAGS)" $(VS) -arg -dont-load-proofs -o Makefile.coq -R HoTT/theories HoTT -R theories HoTT
HoTT/configure.ac::
HoTT/Makefile.am::
HoTT/autogen.sh::
HoTT/configure: HoTT/configure.ac HoTT/autogen.sh
cd HoTT; ./autogen.sh
HoTT/Makefile: HoTT/configure HoTT/Makefile.am
cd HoTT; ./configure
HoTT: HoTT/Makefile
cd HoTT; $(MAKE)
clean:: Makefile.coq
$(MAKE) -f Makefile.coq clean
rm -f Makefile.coq .depend