blob: 8dcc70cf7faa113ae23c96a140e2607cea56479f (
plain)
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
# to be linked to makefile (lowercase - takes precedence over Makefile)
# in main directory
# make devel in main directory should do this for you.
TOPDIR=.
BASEDIR=
SOURCEDIRS=lib kernel library pretyping parsing proofs tactics toplevel
default: usage noargument
usage::
@echo Usage: make \<target\>
@echo Targets are:
usage::
@echo " setup-devel -- set the devel makefile"
setup-devel:
@ln -sfv dev/tools/Makefile.devel makefile
@(for i in $(SOURCEDIRS); do \
(cd $(TOPDIR)/$$i; ln -sfv ../dev/tools/Makefile.dir Makefile) \
done)
usage::
@echo " clean-devel -- clear all devel files"
clean-devel:
echo rm -f makefile .depend.devel
echo rm -f $(foreach dir,$(SOURCEDIRS), $(TOPDIR)/$(dir)/Makefile)
usage::
@echo " coqtop -- make until the bytecode executable, make the link"
coqtop: bin/coqtop.byte
ln -sf bin/coqtop.byte coqtop
usage::
@echo " quick -- make bytecode executable and states"
quick:
$(MAKE) states BEST=byte
include Makefile
include $(TOPDIR)/dev/tools/Makefile.common
# this file is better described in dev/tools/Makefile.dir
include .depend.devel
#if dev/tools/Makefile.local exists, it is included
ifneq ($(wildcard $(TOPDIR)/dev/tools/Makefile.local),)
include $(TOPDIR)/dev/tools/Makefile.local
endif
usage::
@echo " total -- runs coqtop with all theories required"
total:
ledit ./bin/coqtop.byte $(foreach th,$(THEORIESVO),-require $(notdir $(basename $(th))))
usage::
@echo " run -- makes and runs bytecode coqtop using ledit and the history file"
@echo " if you want to pass arguments to coqtop, use make run ARG=<args>"
run: $(TOPDIR)/coqtop
ledit -h $(TOPDIR)/dev/debug_history -x $(TOPDIR)/coqtop $(ARG) $(ARGS)
usage::
@echo " vars -- echos commands to set COQTOP and COQBIN variables"
vars:
@(cd $(TOPDIR); \
echo export COQTOP=`pwd`/ ; \
echo export COQBIN=`pwd`/bin/ )
|