-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile.local
50 lines (38 loc) · 1.59 KB
/
Makefile.local
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
# OPT=-load-vernac-source init.v
COQDOCFLAGS += --lib-subtitles
TAGS: $(VFILES)
coqtags $(VFILES)
clean::
- rm -rf depend.d depend.dot depend.pdf html scripts/ocamldot scripts/ocamldot.ml scripts/ocamldot.cmi scripts/ocamldot.cmo mlihtml
# dependency on all instead of $(GLOBFILES) to workaround for Coq Bug 4660
dochtml: all $(VFILES) html/depend.png html/depend.svg
rm -f html/*.html
$(COQDOC) -toc $(COQDOCFLAGS) -html -g $(COQDOCLIBS) -d html $(COQEXTLIBS) $(VFILES)
rm -f html/index_lib.html
mv html/index.html html/index_lib.html
cat scripts/header.html html/depend.map scripts/footer.html > html/index.html
depend.d: .Makefile.d
rm -f depend
cat .Makefile.d | sed -e 's/[^ ]*glob//g' | sed -e 's/[^ ]*beautified//g' > depend.d
scripts/ocamldot: scripts/ocamldot.mll
ocamllex scripts/ocamldot.mll
ocamlc -o $@ scripts/ocamldot.ml
depend.dot: depend.d scripts/ocamldot
rm -f depend.dot
scripts/ocamldot depend.d > depend.dot
sed -i -e "s/Theories/Combi/g" -e "s/3rdparty.ALEA/ALEA/g" -e "s/\//./g" depend.dot
html/depend.png: depend.dot
- mkdir -p html
dot -Tpng -o html/depend.png -Tcmapx -o html/depend.map depend.dot
html/depend.svg: depend.dot
- mkdir -p html
dot -Tsvg -o html/depend.svg depend.dot
depend.pdf: depend.dot
rm -f depend.pdf
dot -Tpdf -o depend.pdf depend.dot
update-github-doc: dochtml
rm -rf /tmp/doctmp
git clone [email protected]:hivert/Coq-Combi.git -b gh-pages /tmp/doctmp
rsync -avP --delete --exclude .git --exclude README.md html/ /tmp/doctmp
cd /tmp/doctmp && git add --all && git commit --amend -m 'Updated doc to master'
cd /tmp/doctmp && git push --force