-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
33 lines (26 loc) · 828 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
EXTRA_DIR:= doc-config
COQDOCFLAGS:= \
--toc --toc-depth 2 --html --interpolate \
-d docs \
--index indexpage --no-lib-name --parse-comments \
--with-header $(EXTRA_DIR)/header.html --with-footer $(EXTRA_DIR)/footer.html
export COQDOCFLAGS
PUBLIC_URL="https://ianshil.github.io/iS4"
SUBDIR_ROOTS := theories
DIRS := . $(shell find $(SUBDIR_ROOTS) -type d)
BUILD_PATTERNS := *.vok *.vos *.glob *.vo
BUILD_FILES := $(foreach DIR,$(DIRS),$(addprefix $(DIR)/,$(BUILD_PATTERNS)))
_: makefile.coq
makefile.coq:
coq_makefile -f _CoqProject -docroot docs -o $@
doc: makefile.coq
rm -fr html docs/*
COQDOCEXTRAFLAGS='--external $(PUBLIC_URL)'
@$(MAKE) -f makefile.coq html
cp html/* docs
cp $(EXTRA_DIR)/resources/* docs
-include makefile.coq
clean::
rm makefile.coq makefile.coq.conf
rm -f $(BUILD_FILES)
.PHONY: _