forked from Eelis/hybrid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
58 lines (41 loc) · 1.24 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
55
56
57
58
SHELL := /bin/sh
MAKEFLAGS := -r -j
.SUFFIXES:
.PHONY: clean all config dist doc install-dist install-doc tags
CoRN := /home/koper/CoRN
CoLoR := /home/koper/color/color/
COQMAKE := $(MAKE) -f Makefile.coq
EXAMPLES := thermostat
EXAMPLES_BIN := $(addsuffix .bin,$(EXAMPLES))
EXAMPLES_GENERATED := $(addsuffix .ml,$(EXAMPLES)) $(addsuffix .mli,$(EXAMPLES))
all: Makefile.coq
$(COQMAKE) OTHERFLAGS="-dont-load-proofs"
Makefile.coq:
$(MAKE) config
examples: $(EXAMPLES_BIN)
%.bin: %_extract.vo
sed "s/failwith/fun _ -> failwith/" $*.ml > $*_patched.ml
ocamlopt $*.mli $*_patched.ml $*_test.ml -o $@
config:
$(COQBIN)/coq_makefile -R . hybrid -R $(CoRN) CoRN -R $(CoLoR) CoLoR `find ./*.v` > Makefile.coq
$(COQMAKE) depend
clean:
rm -f *~ doc/HybSys.*.html doc/index.html $(EXAMPLES_GENERATED)
$(COQMAKE) clean
tags:
$(COQBIN)/coqtags `find . -name \*.v`
doc:
$(COQBIN)/coqdoc --html -g -d doc -R $(CoRN) CoRN -R $(CoLoR) CoLoR `find ./*.v`
./createIndex
install-doc:
rm -rf $(WEB)/doc
mkdir $(WEB)/doc
cp doc/*.html doc/coqdoc.css $(WEB)/doc
dist:
./createDist
install-dist:
mv -f HybSys_`date +%y%m%d`.tar.gz $(WEB)/HybSys.tar.gz
%.vo: %.v
$(COQMAKE) OTHERFLAGS="-dont-load-proofs" $@
%:
$(COQMAKE) OTHERFLAGS="-dont-load-proofs" $@