-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
37 lines (27 loc) · 888 Bytes
/
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
COQMODULE := coq_intro
COQTHEORIES := src/*.v
.PHONY: all theories clean tounicode
all: build
build: Makefile.coq
$(MAKE) -f Makefile.coq all
quick: Makefile.coq
$(MAKE) -f Makefile.coq quick
Makefile.coq: Makefile $(COQTHEORIES)
(echo "-R src $(COQMODULE)"; \
echo $(COQTHEORIES)) > _CoqProject
coq_makefile -f _CoqProject -o Makefile.coq
%.vo: Makefile.coq
$(MAKE) -f Makefile.coq "$@"
%.vio: Makefile.coq
$(MAKE) -f Makefile.coq "$@"
clean:
(test -f Makefile.coq && $(MAKE) -f Makefile.coq clean) || true
rm -f _CoqProject Makefile.coq
variate:
find . -type f -name '*.v' | xargs sed -i '/[(][*] Proof [*][)]/,/[(][*] End [*][)]/d; /[(][*] Assignment/d; /End [*][)]/d'
tounicode:
sed -i 's/<</⟪/g' $(COQTHEORIES)
sed -i 's/>>/⟫/g' $(COQTHEORIES)
sed -i 's/;;/⨾/g' $(COQTHEORIES)
sed -i 's/<|/⦗/g' $(COQTHEORIES)
sed -i 's/|>/⦘/g' $(COQTHEORIES)