forked from HoTT/Coq-HoTT
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
397 lines (312 loc) · 15.5 KB
/
Makefile.am
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
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
ACLOCAL_AMFLAGS = -I etc
bin_SCRIPTS = hoqtop hoqc hoqdep hoq-config
if make_hoqide
bin_SCRIPTS += hoqide
endif
if make_hoqtopbyte
bin_SCRIPTS += hoqtop.byte
endif
hottdir=$(datarootdir)/hott
EXTRA_DIST = coq theories etc LICENSE.txt CREDITS.txt INSTALL.txt README.markdown
# The path to the Coq library in $(srcdir)
SRCCOQLIB=$(srcdir)/coq
# Extra standard library replacements to install
STDLIB_EXTRA_DIST = $(shell find -P $(addprefix "$(SRCCOQLIB)/",$(STDLIB_REPLACEMENT_DIRS)) -type f)
# support the TIMED variable like coq_makefile
TIMED=
TIMECMD=
#STDTIME=@STDTIME@
TIMER=$(if $(TIMED), $(STDTIME), $(TIMECMD))
# some makefile magic to make things like `make TIMED=1` less noisy
V = 0
Q_0 := @
Q_1 :=
Q = $(Q_$(V))
VECHO_0 := @echo
VECHO_1 := @true
VECHO = $(VECHO_$(V))
# inner vecho, without the @
VIECHO_0 := echo
VIECHO_1 := true
VIECHO = $(VIECHO_$(V))
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))
# the proviola camera
CAMERA = python proviola/camera/camera.py
# include the makefile listing all the targets. This way, we don't
# need to rerun configure every time we add a new file. The targets
# makefile should provide CORE_VFILES and STD_VFILES and
# CATEGORY_VFILES. To add more targets (e.g., ANALYSIS_VFILES), you'll
# need to update Makefile.am and run autogen.sh and configure again.
MAKEFILE_TARGETS_FILE = Makefile_targets.mk
include $(MAKEFILE_TARGETS_FILE)
# The list of files that comprise the HoTT library
VO=vo
CORE_VOFILES=$(CORE_VFILES:.v=.$(VO))
CORE_GLOBFILES=$(CORE_VFILES:.v=.glob)
CORE_DEPFILES=$(CORE_VFILES:.v=.d)
CORE_HTMLFILES=$(patsubst $(subst /,.,$(srcdir)).theories.%,$(srcdir)/html/HoTT.%,$(subst /,.,$(CORE_VFILES:.v=.html)))
CORE_TIMING_HTMLFILES=$(patsubst $(srcdir)/html/%,$(srcdir)/timing-html/%,$(CORE_HTMLFILES))
CORE_DPDFILES=$(patsubst $(subst /,.,$(srcdir)).theories.%,$(srcdir)/file-dep-graphs/HoTT.%,$(subst /,.,$(CORE_VFILES:.v=.dpd)))
# The list of files that comprise the category theory in the HoTT library
CATEGORY_VOFILES=$(CATEGORY_VFILES:.v=.$(VO))
CATEGORY_GLOBFILES=$(CATEGORY_VFILES:.v=.glob)
CATEGORY_DEPFILES=$(CATEGORY_VFILES:.v=.d)
CATEGORY_HTMLFILES=$(patsubst $(subst /,.,$(srcdir)).theories.%,$(srcdir)/html/HoTT.%,$(subst /,.,$(CATEGORY_VFILES:.v=.html)))
CATEGORY_TIMING_HTMLFILES=$(patsubst $(srcdir)/html/%,$(srcdir)/timing-html/%,$(CATEGORY_HTMLFILES))
CATEGORY_DPDFILES=$(patsubst $(subst /,.,$(srcdir)).theories.%,$(srcdir)/file-dep-graphs/HoTT.%,$(subst /,.,$(CATEGORY_VFILES:.v=.dpd)))
# The list of files from contrib
CONTRIB_VOFILES=$(CONTRIB_VFILES:.v=.$(VO))
CONTRIB_GLOBFILES=$(CONTRIB_VFILES:.v=.glob)
CONTRIB_DEPFILES=$(CONTRIB_VFILES:.v=.d)
CONTRIB_HTMLFILES=$(patsubst $(subst /,.,$(srcdir)).contrib.%,$(srcdir)/html/%,$(subst /,.,$(CONTRIB_VFILES:.v=.html)))
CONTRIB_TIMING_HTMLFILES=$(patsubst $(srcdir)/html/%,$(srcdir)/timing-html/%,$(CONTRIB_HTMLFILES))
# I'm not sure why we needs = rather than :=, but we seem to
ALL_BUILT_HOTT_VFILES = $(STD_VFILES) $(CORE_VFILES) $(CATEGORY_VFILES)
ALL_HOTT_VFILES = $(shell find "$(srcdir)/theories" -name "*.v") $(shell find "$(SRCCOQLIB)/theories" -name "*.v")
UNBUILT_VFILES = $(filter-out $(ALL_BUILT_HOTT_VFILES),$(ALL_HOTT_VFILES))
# The list of files that comprise the alternative standard library
# the .vi infrastructure doesn't work unless we have .vos for the
# standard library
STD_VOFILES=$(STD_VFILES:.v=.vo)
STD_GLOBFILES=$(STD_VFILES:.v=.glob)
STD_DEPFILES=$(STD_VFILES:.v=.d)
STD_HTMLFILES=$(patsubst $(subst /,.,$(srcdir)).coq.theories.%,$(srcdir)/html/Coq.%,$(subst /,.,$(STD_VFILES:.v=.html)))
STD_TIMING_HTMLFILES=$(patsubst $(srcdir)/html/%,$(srcdir)/timing-html/%,$(STD_HTMLFILES))
STD_DPDFILES=$(patsubst $(subst /,.,$(srcdir)).coq.theories.%,$(srcdir)/file-dep-graphs/Coq.%,$(subst /,.,$(STD_VFILES:.v=.dpd)))
# The list of all files, mainly used for html and proviola
MAIN_VFILES = $(CORE_VFILES) $(CATEGORY_VFILES) $(CONTRIB_VFILES)
MAIN_VOFILES = $(MAIN_VFILES:.v=.$(VO))
MAIN_GLOBFILES = $(MAIN_VFILES:.v=.glob)
MAIN_DEPFILES = $(MAIN_VFILES:.v=.d)
MAIN_HTMLFILES = $(CORE_HTMLFILES) $(CATEGORY_HTMLFILES) $(CONTRIB_HTMLFILES)
MAIN_TIMING_HTMLFILES = $(CORE_TIMING_HTMLFILES) $(CATEGORY_TIMING_HTMLFILES) $(CONTRIB_TIMING_HTMLFILES)
MAIN_DPDFILES = $(CORE_DPDFILES) $(CATEGORY_DPDFILES)
ALL_VFILES = $(STD_VFILES) $(MAIN_VFILES)
ALL_VOFILES = $(STD_VOFILES) $(MAIN_VOFILES)
ALL_GLOBFILES=$(STD_GLOBFILES) $(MAIN_GLOBFILES)
ALL_DEPFILES=$(STD_DEPFILES) $(MAIN_DEPFILES)
ALL_HTMLFILES=$(STD_HTMLFILES) $(MAIN_HTMLFILES)
ALL_TIMING_HTMLFILES=$(STD_TIMING_HTMLFILES) $(MAIN_TIMING_HTMLFILES)
ALL_TIMINGFILES=$(ALL_VFILES:.v=.timing)
ALL_XMLFILES=$(patsubst $(srcdir)/html/%,$(srcdir)/proviola-xml/%,$(ALL_HTMLFILES:.html=.xml))
ALL_PROVIOLA_HTMLFILES=$(patsubst $(srcdir)/proviola-xml/%,$(srcdir)/proviola-html/%,$(ALL_XMLFILES:.xml=.html))
ALL_DPDFILES=$(MAIN_DPDFILES) # $(STD_DPDFILES)
ALL_SVGFILES=$(ALL_DPDFILES:.dpd=.svg)
ALL_DOTFILES=$(ALL_DPDFILES:.dpd=.dot)
# Definitions that let autoconf know how to install things.
nobase_hott_DATA = \
$(ALL_VOFILES) \
$(ALL_GLOBFILES) \
$(STDLIB_EXTRA_DIST) \
$(shell find "$(SRCCOQLIB)/theories" -name "README.txt")
# The Coq compiler, adapted to HoTT
HOQC=$(srcdir)/hoqc
# Which extra files should be cleaned
EXTRA_CLEANFILES = html-done.timestamp HoTT.deps HoTTCore.deps file-dep-graphs/hott-all.dot file-dep-graphs/hott-all.dpd file-dep-graphs/hott-all.svg file-dep-graphs/hott-lib.dot file-dep-graphs/hott-lib.dpd file-dep-graphs/hott-lib.svg
# automake is very stupid and wants to put the 'include' line above
# after this target. But this target depends on variables defined in
# that file, so we explicitly put the target here to trick automake
# into putting the include in the right place.
all-am: Makefile $(SCRIPTS) $(DATA) $(MAKEFILE_TARGETS_FILE)
.SECONDEXPANSION:
.PHONY: stdlib hottlib hott-core hott-categories contrib clean html proviola timing-html clean-local install-data-local proviola-all proviola-xml svg-file-dep-graphs svg-aggregate-dep-graphs svg-dep-graphs clean-dpdgraph strict strict-test strict-no-axiom quick vi2vo checkproofs
# targets that we don't need to run coqdep for
FAST_TARGETS = clean clean-local clean-dpdgraph TAGS
if install_stdlib_symlinks
install-data-local:
$(MKDIR_P) "$(hottdir)/coq"
$(Q)for i in $(STDLIB_REPLACEMENT_DIRS); do \
$(VIECHO) "INSTALL coq/$$i"; \
rm -f "$(hottdir)/coq/$$i"; \
$(LN_S) "$(COQLIB)/$$i" "$(hottdir)/coq"; \
done
endif
# The standard library files must be compiled in a special way
stdlib: $(STD_VOFILES)
quick:
$(MAKE) all VO=vi
vi2vo:
$(VECHO) HOQC -schedule-vi2vo
$(Q) $(TIMER) $(HOQC) -schedule-vi2vo $(J) $(MAIN_VOFILES:%.vo=%.vi)
checkproofs:
$(VECHO) HOQC -schedule-vi-checking
$(Q) $(TIMER) $(HOQC) -schedule-vi-checking $(J) $(MAIN_VOFILES:%.vo=%.vi)
$(STD_VOFILES) : %.vo : %.v coq-HoTT
$(VECHO) COQTOP $*
$(Q) $(TIMER) etc/pipe_out.sh "$*.timing" "$(COQTOP)" -time -indices-matter -boot -nois -no-native-compiler -coqlib "$(SRCCOQLIB)" -R "$(SRCCOQLIB)/theories" Coq -compile "$*"
# The HoTT library as a single target
hott-core: $(CORE_VOFILES)
hott-categories: $(CATEGORY_VOFILES)
contrib: $(CONTRIB_VOFILES)
hottlib: hott-core hott-categories contrib
# a strict rule that will error if there are .v files around which aren't in Makefile_targets.mk
strict-test:
$(Q) if [ x"$(UNBUILT_VFILES)" != x ]; then \
echo "Error: The files '$(UNBUILT_VFILES)' are present but are not in $(MAKEFILE_TARGETS_FILE)"; \
exit 1; \
fi
# a rule that will error if there are any .v files that require FunextAxiom or UnivalenceAxiom
strict-no-axiom: $(ALL_GLOBFILES)
$(Q) if [ ! -z "$$(grep 'HoTT\.\(FunextAxiom\|UnivalenceAxiom\) <> <> lib' -l $<)" ]; then \
echo "Error: The files '$$(grep 'HoTT\.\(FunextAxiom\|UnivalenceAxiom\) <> <> lib' -l $<)' depend on FunextAxiom or UnivalenceAxiom."; \
exit 1; \
fi
strict: strict-test strict-no-axiom hottlib hott-core hott-categories contrib
# A rule for compiling the HoTT libary files
$(MAIN_VFILES:.v=.vo) : %.vo : %.v $(STD_VOFILES) coq-HoTT
$(VECHO) HOQC $*
$(Q) $(TIMER) ./etc/pipe_out.sh "$*.timing" $(HOQC) -time $<
$(MAIN_VFILES:.v=.vi) : %.vi : %.v $(STD_VOFILES) coq-HoTT
$(VECHO) HOQC -quick $*
$(Q) $(TIMER) ./etc/pipe_out.sh "$*.timing" $(HOQC) -quick -time $<
# The deps file, for graphs
HoTT.deps: $(ALL_VFILES)
$(VECHO) COQDEP > $@
$(Q) "$(COQDEP)" -nois -coqlib "$(SRCCOQLIB)" -R "$(srcdir)/theories" HoTT -R "$(SRCCOQLIB)/theories" Coq $(ALL_VFILES) | sed s'#\\#/#g' >$@
HoTTCore.deps: $(CORE_VFILES)
$(VECHO) COQDEP > $@
$(Q) "$(COQDEP)" -nois -coqlib "$(SRCCOQLIB)" -R "$(srcdir)/theories" HoTT -R "$(SRCCOQLIB)/theories" Coq $(CORE_VFILES) | sed s'#\\#/#g' >$@
# The HTML files
# We have a dummy file, to allow us to depend on the html files without
# remaking them every time, and to prevent make -j2 from running coqdoc
# twice.
html-done.timestamp: $(ALL_GLOBFILES) $(ALL_VFILES)
- $(mkdir_p) html
touch html-done.timestamp
"$(COQDOC)" -toc -interpolate -utf8 -html --coqlib_path "$(SRCCOQLIB)" --no-externals -R "$(srcdir)/theories" HoTT -R "$(SRCCOQLIB)/theories" Coq -d html $(ALL_VFILES)
html:
rm -f html-done.timestamp
$(MAKE) html-done.timestamp
timing-html: $(ALL_TIMING_HTMLFILES) timing-html/coqdoc.css timing-html/toc.html
timing-html/coqdoc.css timing-html/toc.html: timing-html/% : html/%
@ $(mkdir_p) timing-html
cp "$<" "$@"
$(ALL_HTMLFILES) html/index.html html/coqdoc.css html/toc.html : html-done.timestamp
$(CORE_TIMING_HTMLFILES) $(CATEGORY_TIMING_HTMLFILES): timing-html/HoTT.%.html : theories/$$(subst .,/,$$*).vo etc/time2html
@ $(mkdir_p) $(dir $@)
$(VECHO) TIME2HTML HoTT.$* > $@
$(Q) etc/time2html "$(<:.vo=.timing)" "$(<:.vo=.v)" > $@
$(CONTRIB_TIMING_HTMLFILES): timing-html/%.html : contrib/$$(subst .,/,$$*).vo etc/time2html
@ $(mkdir_p) $(dir $@)
$(VECHO) TIME2HTML $* > $@
$(Q) etc/time2html "$(<:.vo=.timing)" "$(<:.vo=.v)" > $@
$(STD_TIMING_HTMLFILES): timing-html/Coq.%.html : coq/theories/$$(subst .,/,$$*).vo etc/time2html
@ $(mkdir_p) $(dir $@)
$(VECHO) TIME2HTML Coq.$* > $@
$(Q) etc/time2html "$(<:.vo=.timing)" "$(<:.vo=.v)" > $@
# the proviola files
proviola-html/index.html proviola-html/toc.html proviola-html/coqdoc.css : proviola-html/% : html/%
- $(mkdir_p) proviola-html
cp -f $< $@
proviola-html/proviola.css : proviola-html/% : proviola/proviola/ppcoqdoc/%
- $(mkdir_p) proviola-html
cp -f $< $@
proviola-xml/proviola.css proviola-xml/proviola.xsl : proviola-xml/% : proviola/proviola/ppcoqdoc/%
- $(mkdir_p) proviola-xml
cp -f $< $@
proviola-xml/%.xml: html/%.html
@$(mkdir_p) proviola-xml
$(VECHO) CAMERA $<
$(Q) $(CAMERA) --coqtop "$(srcdir)/hoqtop" $< $@
proviola-html/%.html: proviola-xml/%.xml proviola-xml/proviola.xsl
@$(mkdir_p) proviola-html
$(VECHO) XSLTPROC $<
$(Q) xsltproc $< > $@
proviola: $(ALL_PROVIOLA_HTMLFILES) proviola-html/proviola.css proviola-html/toc.html proviola-html/coqdoc.css proviola-html/index.html
proviola-xml: $(ALL_XMLFILES)
proviola-all: proviola proviola-xml
# dpdgraphs
etc/dpdgraph-0.4alpha/coqthmdep: etc/dpdgraph-0.4alpha/searchdepend.ml4 etc/dpdgraph-0.4alpha/graphdepend.ml4
$(VECHO) MAKE DPDGRAPH
$(Q) cd etc/dpdgraph-0.4alpha && $(MAKE)
%.svg: %.dot
$(VECHO) DOT $< -o $@
$(Q) if [ -s "$<" ]; then dot -Tsvg "$<" -o "$@"; else (echo "" > "$@"; touch "$@"); fi # don't do anything if zero size
file-dep-graphs/%.dot: file-dep-graphs/%.dpd etc/dpdgraph-0.4alpha/coqthmdep
$(VECHO) DPD2DOT $< -o $@
$(Q) if [ -s "$<" ]; then etc/dpdgraph-0.4alpha/dpd2dot $< -graphname $(subst -,_,$(subst .,_,$*)) -o $@ >/dev/null; else (echo "" > "$@"; touch "$@"); fi
$(MAIN_DPDFILES): file-dep-graphs/HoTT.%.dpd : theories/$$(subst .,/,$$*).vo etc/dpdgraph-0.4alpha/coqthmdep
@ $(mkdir_p) $(dir $@)
$(VECHO) HOQTHMDEP HoTT.$* > $@
$(Q) (echo "Require HoTT.$*."; echo 'Set DependGraph File "$@".'; echo 'Print FileDependGraph HoTT.$*.') | etc/dpdgraph-0.4alpha/hoqthmdep 2>/dev/null >/dev/null
$(STD_DPDFILES): file-dep-graphs/Coq.%.dpd : coq/theories/$$(subst .,/,$$*).vo etc/dpdgraph-0.4alpha/coqthmdep
@ $(mkdir_p) $(dir $@)
$(VECHO) HOQTHMDEP Coq.$* > $@
$(Q) (echo "Require Coq.$*."; echo 'Set DependGraph File "$@".'; echo 'Print FileDependGraph Coq.$*.') | etc/dpdgraph-0.4alpha/hoqthmdep 2>/dev/null >/dev/null
file-dep-graphs/hott-lib.dpd: etc/dpdgraph-0.4alpha/coqthmdep $(CORE_VOFILES)
@ $(mkdir_p) $(dir $@)
$(VECHO) HOQTHMDEP HoTTLib
HOTT_LIB_FILES=$(subst /,.,$(patsubst $(srcdir)/theories/%.v,HoTT.%,$(CORE_VFILES)))
$(Q) (echo "Require $(HOTT_LIB_FILES)."; echo 'Set DependGraph File "$@".'; echo 'Print FileDependGraph $(HOTT_LIB_FILES).') | etc/dpdgraph-0.4alpha/hoqthmdep 2>/dev/null >/dev/null
#file-dep-graphs/hott-all.dpd: etc/dpdgraph-0.4alpha/coqthmdep $(CORE_VOFILES) $(CATEGORY_VOFILES)
# @ $(mkdir_p) $(dir $@)
# $(VECHO) HOQTHMDEP HoTT
# HOTT_ALL_FILES=$(subst /,.,$(patsubst $(srcdir)/theories/%.v,HoTT.%,$(CORE_VFILES) $(CATEGORY_VFILES)))
# $(Q) (echo "Require $(HOTT_ALL_FILES)."; echo 'Set DependGraph File "$@".'; echo 'Print FileDependGraph $(HOTT_ALL_FILES).') | etc/dpdgraph-0.4alpha/hoqthmdep 2>/dev/null >/dev/null
file-dep-graphs/index.html: Makefile_targets.mk
@ $(mkdir_p) $(dir $@)
$(VECHO) MAKE $@
$(Q) (echo "<html><head><title>Dependency Graphs</title></head><body>"; \
echo '<ul><!--li><a href="hott-all.svg">Entire HoTT Library</a></li-->'; \
echo '<li><a href="hott-lib.svg">HoTT Core Library</a></li>'; \
for i in $(patsubst $(srcdir)/file-dep-graphs/%.svg,%,$(ALL_SVGFILES)); \
do echo "<li><a href=\"$$i.svg\">$$i</a></li>"; \
done; \
echo "</ul></body></html>") \
> $@
svg-dep-graphs: svg-file-dep-graphs svg-aggregate-dep-graphs
dot-dep-graphs: dot-file-dep-graphs dot-aggregate-dep-graphs
svg-aggregate-dep-graphs: file-dep-graphs/hott-lib.svg #file-dep-graphs/hott-all.svg
dot-aggregate-dep-graphs: file-dep-graphs/hott-lib.dot #file-dep-graphs/hott-all.dot
svg-file-dep-graphs: $(ALL_SVGFILES) $(ALL_DOTFILES)
dot-file-dep-graphs: $(ALL_DOTFILES)
# The TAGS file
TAGS_FILES = $(ALL_VFILES)
TAGS : $(TAGS_FILES)
$(ETAGS) --language=none \
-r '/^[[:space:]]*\(Axiom\|Theorem\|Class\|Instance\|Let\|Ltac\|Definition\|Lemma\|Record\|Remark\|Structure\|Fixpoint\|Fact\|Corollary\|Let\|Inductive\|Coinductive\|Proposition\)[[:space:]]+\([[:alnum:]_'\'']+\)/\2/' \
-r '/^[[:space:]]*\([[:alnum:]_'\'']+\)[[:space:]]*:/\1/' \
$^
# Dependency files
$(MAIN_DEPFILES) : %.d : %.v
$(VECHO) COQDEP $<
$(Q) "$(COQDEP)" -nois -coqlib "$(SRCCOQLIB)" -R "$(srcdir)/theories" HoTT -R "$(SRCCOQLIB)/theories" Coq $< | sed s'#\\#/#g' >$@
$(STD_DEPFILES) : %.d : %.v
$(VECHO) COQDEP $<
$(Q) "$(COQDEP)" -nois -coqlib "$(SRCCOQLIB)" -R "$(SRCCOQLIB)/theories" Coq $< | sed s'#\\#/#g' >$@
clean-dpdgraph::
(cd etc/dpdgraph-0.4alpha && $(MAKE) clean)
# We separate things to work around `make: execvp: /bin/bash: Argument list too long`
clean::
$(VECHO) "RM *.VO"
$(Q)rm -f $(ALL_VOFILES)
$(VECHO) "RM *.VIO"
$(Q)rm -f $(ALL_VFILES:.v=.vio)
$(VECHO) "RM *.GLOB"
$(Q)rm -f $(ALL_GLOBFILES)
$(VECHO) "RM *.V.D"
$(Q)rm -f $(ALL_DEPFILES)
$(VECHO) "RM *.HTML"
$(Q)rm -f $(ALL_HTMLFILES)
$(VECHO) "RM *.XML"
$(Q)rm -f $(ALL_XMLFILES)
$(VECHO) "RM *.HTML"
$(Q)rm -f $(ALL_PROVIOLA_HTMLFILES)
$(VECHO) "RM *.TIMING"
$(Q)rm -f $(ALL_TIMINGFILES)
$(VECHO) "RM *.TIMING.HTML"
$(Q)rm -f $(ALL_TIMING_HTMLFILES)
$(VECHO) "RM *.SVG"
$(Q)rm -f $(ALL_SVGFILES)
$(VECHO) "RM *.DPD"
$(Q)rm -f $(ALL_DPDFILES)
$(VECHO) "RM *.DOT"
$(Q)rm -f $(ALL_DOTFILES)
rm -f $(EXTRA_CLEANFILES)
find "$(SRCCOQLIB)/theories" $(srcdir)/theories -name \*.vo -o -name \*.glob -o -name \*.timing | xargs rm -f
@include_snippet@