forked from uds-psl/coq-library-complexity
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
54 lines (38 loc) · 1.59 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
all: Makefile.coq
$(MAKE) -f Makefile.coq all
depsopam:
opam repo add coq-released https://coq.inria.fr/opam/released
opam pin add -y coq-library-undecidability https://github.com/fakusb/coq-library-undecidability.git#0e8fb96ce78f0912210f9ff904ee4ba11796ec8b
opam install . --deps-only
VFILES_LIB_UNDEC = $(shell grep -P '^(TM|(L(?!\/Reductions\/)))(\/[^\/\s]+)*\.v' coq-library-undecidability/theories/_CoqProject 2> /dev/null)
VOFILES_LIB_UNDEC := $(VFILES_LIB_UNDEC:=o)
depssubmodule:
git submodule update
opam install ./coq-library-undecidability --deps-only
$(MAKE) -C coq-library-undecidability/theories -f Makefile Makefile.coq
$(MAKE) -C coq-library-undecidability/theories -f Makefile.coq only TGTS="$(VOFILES_LIB_UNDEC)"
depssubmodule_makeonly:
$(MAKE) -C coq-library-undecidability/theories -f Makefile Makefile.coq
$(MAKE) -C coq-library-undecidability/theories -f Makefile.coq only TGTS="$(VOFILES_LIB_UNDEC)"
html: Makefile.coq
$(MAKE) -f Makefile.coq html
mv html/*.html ./website
rm -rf html
install: Makefile.coq
$(MAKE) -f Makefile.coq install
uninstall: Makefile.coq
$(MAKE) -f Makefile.coq uninstall
realclean: Makefile.coq clean
$(MAKE) -C coq-library-undecidability/theories -f Makefile clean
clean: Makefile.coq
$(MAKE) -f Makefile.coq clean
rm -f Makefile.coq Makefile.coq.conf $(TMP_COQPROJECT)
TMP_COQPROJECT := "._CoqProject.tmp"
Makefile.coq: _CoqProject
./adjustCoqProject.sh $(TMP_COQPROJECT)
coq_makefile -f $(TMP_COQPROJECT) -o Makefile.coq
.PHONY: all install html clean
dummy:
force _CoqProject Makefile: ;
%: Makefile.coq force
@+$(MAKE) -f Makefile.coq $@