forked from DeepSpec/InteractionTrees
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommon.mk
39 lines (28 loc) · 880 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
# Shared make commands
.PHONY: coq clean-coq
coq: Makefile.coq
$(MAKE) -f Makefile.coq
clean-coq:
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 -------------------------------------------------
COQDOCFLAGS:= \
-t "Interaction Trees" \
--toc --toc-depth 2 --html --interpolate \
--index indexpage --no-lib-name --parse-comments
ifdef COQDOCJS_DIR
COQDOCFLAGS+=--with-header $(COQDOCJS_DIR)/extra/header.html --with-footer $(COQDOCJS_DIR)/extra/footer.html
export COQDOCFLAGS
html: Makefile.coq coq
rm -rf html
$(MAKE) -f Makefile.coq html
cp $(COQDOCJS_DIR)/extra/resources/* html
else
export COQDOCFLAGS
html: Makefile.coq coq
rm -rf html
$(MAKE) -f Makefile.coq html
endif
## -------------------------------------------------------