-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (29 loc) · 1002 Bytes
/
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
COQDOC_EXTRA_DIR:=extra/CoqdocJS
COQDOCFLAGS:= \
--external 'http://ssr2.msr-inria.inria.fr/doc/ssreflect-1.5/' Ssreflect \
--external 'http://ssr2.msr-inria.inria.fr/doc/mathcomp-1.5/' MathComp \
--toc --toc-depth 2 --html --interpolate \
--index indexpage --no-lib-name --parse-comments \
--with-header $(COQDOC_EXTRA_DIR)/header.html --with-footer $(COQDOC_EXTRA_DIR)/footer.html
export COQDOCFLAGS
COQMAKEFILE:=Makefile.coq
COQ_PROJ:=_CoqProject
VS:=$(wildcard *.v)
all: html
clean: $(COQMAKEFILE)
rm -fr html
@$(MAKE) -f $(COQMAKEFILE) $@
rm -f $(COQMAKEFILE)
html: $(COQMAKEFILE) $(VS)
rm -fr html
@$(MAKE) -f $(COQMAKEFILE) $@
cp $(COQDOC_EXTRA_DIR)/resources/* html
#alectryon: $(COQMAKEFILE) $(COQMF_VFILES)
# rm -fr html-alectryon
# alectryon --output-directory html-alectryon $(COQMF_VFILES)
$(COQMAKEFILE): $(COQ_PROJ) $(VS)
coq_makefile -f $(COQ_PROJ) -o $@
%: $(COQMAKEFILE) force
@$(MAKE) -f $(COQMAKEFILE) $@
force $(COQ_PROJ) $(VS): ;
.PHONY: clean all force