-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile.coq.local
38 lines (29 loc) · 1.32 KB
/
Makefile.coq.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
#Inspired from https://github.com/coq-community/reglang
GLOBFILES = $(VFILES:.v=.glob)
COQDOCJS_DIR ?= coqdocjs
EXTRA_DIR = $(COQDOCJS_DIR)/extra
HEADER = $(EXTRA_DIR)/header.html
FOOTER = $(EXTRA_DIR)/footer.html
RESOURCES = $(EXTRA_DIR)/resources
DOCDIR = docs
COQDOCDIR = $(DOCDIR)/coqdoc
COQDOCHTMLFLAGS = -toc --toc-depth 0 --no-lib-name --lib-subtitles --html \
--with-header $(HEADER) --with-footer $(FOOTER) --index indexpage --parse-comments
coqdoc: $(GLOBFILES) $(VFILES) $(HEADER) $(FOOTER) $(RESOURCES) $(FRONTPAGE)
$(SHOW)'COQDOC -d $(COQDOCDIR)'
$(HIDE)mkdir -p $(COQDOCDIR)
$(HIDE)$(COQDOC) $(COQDOCHTMLFLAGS) $(COQDOCLIBS) -d $(COQDOCDIR) $(VFILES)
$(SHOW)'COPY extra'
$(HIDE)cp -r $(RESOURCES) $(COQDOCDIR)
.PHONY: coqdoc
clean::
$(HIDE)rm -rf $(COQDOCDIR)/*.html
$(DOCDIR)/dependency_graph.pre: $(VFILES)
coqdep -Q theories LogRel -R coq-partialfun/theories PartialFun $(VFILES) | perl generate_deps.pl > $(DOCDIR)/dependency_graph.pre
$(DOCDIR)/dependency_graph.dot: $(DOCDIR)/dependency_graph.pre
rm -f $(DOCDIR)/dependency_graph.dot
tred $(DOCDIR)/dependency_graph.pre > $(DOCDIR)/dependency_graph.dot
$(DOCDIR)/dependency_graph.png: $(DOCDIR)/dependency_graph.dot
dot -T png $(DOCDIR)/dependency_graph.dot -o $(DOCDIR)/dependency_graph.png
depgraph: $(DOCDIR)/dependency_graph.png
.PHONY: depgraph