-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
180 lines (168 loc) · 3.7 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
MODULES := Notations \
Common \
GetArguments \
FEqualDep \
StructureEquality \
DefinitionSimplification \
NatFacts \
EquivalenceSet \
EquivalenceClass \
EquivalenceRelationGenerator \
Paths \
EqdepFacts_one_variable \
Eqdep_dec_one_variable \
\
SpecializedCategory \
Functor \
NaturalTransformation \
ProductCategory \
SumCategory \
\
LtacReifiedSimplification \
TypeclassSimplification \
TypeclassUnreifiedSimplification \
CanonicalStructureSimplification \
\
Category \
CategoryEquality \
CategoryIsomorphisms \
FunctorIsomorphisms \
NaturalEquivalence \
\
Graph \
GraphTranslation \
ComputableGraphCategory \
\
NaturalNumbersObject \
ChainCategory \
BoolCategory \
NatCategory \
FunctorCategory \
ComputableCategory \
DiscreteCategory \
IndiscreteCategory \
PathsCategory \
FunctorProduct \
ProductNaturalTransformation \
ProductInducedFunctors \
SumInducedFunctors \
ExponentialLaws \
ProductLaws \
FunctorialComposition \
MonoidalCategory \
EnrichedCategory \
SetCategory \
SetCategoryProductFunctor \
InitialTerminalCategory \
SmallCat \
CommaCategory \
SpecializedCommaCategory \
LaxCommaCategory \
SpecializedLaxCommaCategory \
CommaCategoryProjection \
CommaCategoryInducedFunctors \
CommaCategoryProjectionFunctors \
CommaCategoryFunctors \
CommaCategoryFunctorProperties \
UniversalProperties \
Duals \
DualFunctor \
FunctorCategoryFunctorial \
Hom \
FunctorAttributes \
SigCategory \
SigTCategory \
SigTSigCategory \
SigSigTCategory \
SigTInducedFunctors \
SigTSigInducedFunctors \
Subcategory \
DecidableDiscreteCategory \
DecidableComputableCategory \
DecidableSmallCat \
DecidableSetCategory \
SimplicialSets \
SemiSimplicialSets \
Correspondences \
Groupoid \
AdjointUnit \
Adjoint \
AdjointUniversalMorphisms \
AdjointComposition \
AdjointPointwise \
DiscreteCategoryFunctors \
DecidableDiscreteCategoryFunctors \
PathsCategoryFunctors \
\
Group \
GroupCategory \
\
Limits \
LimitFunctors \
LimitFunctorTheorems \
InducedLimitFunctors \
Graphs \
Equalizer \
EqualizerFunctor \
Pullback \
PullbackFunctor \
Products \
ProductFunctors \
Coend \
CoendFunctor \
SubobjectClassifier \
Grothendieck \
GrothendieckFunctorial \
SetLimits \
SetColimits \
SetCategoryFacts \
Yoneda \
\
Schema \
SmallSchema \
SetSchema \
Instance \
Translation \
SmallTranslation \
MetaTranslation \
MetaEquivalence \
Examples \
Theorems \
\
Database \
SQLQueries \
DatabaseConstraints \
DatabaseMorphisms # \
DataMigrationFunctors \
CategorySchemaEquivalence \
ComputableSchemaCategory
VS := $(MODULES:%=%.v)
VDS := $(MODULES:%=%.v.d)
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
TIME_SHELF_NAME=time-of-build-shelf
.PHONY: coq clean timed pretty-timed pretty-timed-files html
coq: Makefile.coq
$(MAKE) -f Makefile.coq
html: Makefile.coq
$(MAKE) -f Makefile.coq html
# TODO(jgross): Look into combining this with the time-make.sh script
timed: Makefile.coq
chmod +x ./report_time.sh
./report_time.sh -c $(MAKE) -f Makefile.coq SHELL=./report_time.sh
pretty-timed-diff:
sh ./make-each-time-file.sh "$(NEW_TIME_FILE)" "$(OLD_TIME_FILE)"
$(MAKE) combine-pretty-timed
combine-pretty-timed:
python ./make-both-time-files.py "$(NEW_TIME_FILE)" "$(OLD_TIME_FILE)" "$(BOTH_TIME_FILE)"
cat "$(BOTH_TIME_FILE)"
pretty-timed:
sh ./make-each-time-file.sh "$(NEW_TIME_FILE)"
python ./make-one-time-file.py "$(NEW_TIME_FILE)" "$(NEW_PRETTY_TIME_FILE)"
Makefile.coq: Makefile $(VS)
coq_makefile $(VS) -arg -dont-load-proofs -o Makefile.coq
clean:: Makefile.coq
$(MAKE) -f Makefile.coq clean
rm -f Makefile.coq .depend