-
Notifications
You must be signed in to change notification settings - Fork 51
/
common.mk
41 lines (29 loc) · 939 Bytes
/
common.mk
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
# Shared make commands
.PHONY: coq clean-coq html
coq: Makefile.coq
$(MAKE) -f Makefile.coq
clean-coq: _CoqProject
if [ -e Makefile.coq ] ; then $(MAKE) -f Makefile.coq cleanall ; fi
$(RM) Makefile.coq Makefile.coq.conf
Makefile.coq: _CoqProject
coq_makefile -f $< -o $@
## coqdoc -------------------------------------------------
COQDOCEXTRAFLAGS:= \
-t "Interaction Trees" \
--toc --toc-depth 2 \
--index indexpage --no-lib-name --parse-comments \
COQDOCJS_DIR:=$(wildcard coqdocjs)
ifneq ($(COQDOCJS_DIR),)
COQDOCEXTRAFLAGS+=--with-header $(COQDOCJS_DIR)/extra/header.html --with-footer $(COQDOCJS_DIR)/extra/footer.html
export COQDOCEXTRAFLAGS
html: Makefile.coq coq
rm -rf html
$(MAKE) -f Makefile.coq html
cp $(COQDOCJS_DIR)/extra/resources/* html
else
export COQDOCEXTRAFLAGS
html: Makefile.coq coq
rm -rf html
$(MAKE) -f Makefile.coq html
endif
## -------------------------------------------------------