This repository has been archived by the owner on Jul 1, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
132 lines (103 loc) · 3.34 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
ATP ?= online-atps --atp=metis
# ATP ?= metis --show proof
# ATP ?=eprover --definitional-cnf=24 -s --proof-object --tptp3-format
TPTP_BASIC := $(wildcard problems/basic/*.tptp)
TSTP_BASIC := $(addprefix problems/basic/,$(notdir $(TPTP_BASIC:.tptp=.tstp)))
TPTP_CONJ := $(wildcard problems/conjunction/*.tptp)
TSTP_CONJ := $(addprefix problems/conjunction/,$(notdir $(TPTP_CONJ:.tptp=.tstp)))
TPTP_DISJ := $(wildcard problems/disjunction/*.tptp)
TSTP_DISJ := $(addprefix problems/disjunction/,$(notdir $(TPTP_DISJ:.tptp=.tstp)))
TPTP_IMPL := $(wildcard problems/implication/*.tptp)
TSTP_IMPL := $(addprefix problems/implication/,$(notdir $(TPTP_IMPL:.tptp=.tstp)))
TPTP_BICOND := $(wildcard problems/biconditional/*.tptp)
TSTP_BICOND := $(addprefix problems/biconditional/,$(notdir $(TPTP_BICOND:.tptp=.tstp)))
TPTP_NEG := $(wildcard problems/negation/*.tptp)
TSTP_NEG := $(addprefix problems/negation/,$(notdir $(TPTP_NEG:.tptp=.tstp)))
TPTP_PROP_METIS := $(wildcard problems/prop-metis/*.tptp)
TSTP_PROP_METIS := $(addprefix problems/prop-metis/,$(notdir $(TPTP_PROP_METIS:.tptp=.tstp)))
.PHONY : default
default :
make tex
.PHONY: solutions
solutions: $(TSTP_BASIC) \
$(TSTP_CONJ) \
$(TSTP_DISJ) \
$(TSTP_IMPL) \
$(TSTP_BICOND) \
$(TSTP_NEG) \
$(TSTP_PROP_METIS)
@find . -type f -name "cnf*" -delete
@echo "ATP: ${ATP}"
.PHONY: basic
basic: $(TSTP_BASIC)
@find . -type f -name "cnf*" -delete
@echo "ATP: ${ATP}"
.PHONY: conjunction
conjunction: $(TSTP_CONJ)
@find . -type f -name "cnf*" -delete
@echo "ATP: ${ATP}"
.PHONY: disjunction
disjunction: $(TSTP_DISJ)
@find . -type f -name "cnf*" -delete
@echo "ATP: ${ATP}"
.PHONY: implication
implication: $(TSTP_IMPL)
@find . -type f -name "cnf*" -delete
@echo "ATP: ${ATP}"
.PHONY: biconditional
biconditional: $(TSTP_BICOND)
@find . -type f -name "cnf*" -delete
@echo "ATP: ${ATP}"
.PHONY: negation
negation: $(TSTP_NEG)
@find . -type f -name "cnf*" -delete
@echo "ATP: ${ATP}"
.PHONY: prop-metis
prop-metis: $(TSTP_PROP_METIS)
@find . -type f -name "cnf*" -delete
@echo "ATP: ${ATP}"
problems/basic/%.tstp: problems/basic/%.tptp
@echo $@
@${ATP} $< > $@
problems/conjunction/%.tstp: problems/conjunction/%.tptp
@echo $@
@${ATP} $< > $@
problems/disjunction/%.tstp: problems/disjunction/%.tptp
@echo $@
@${ATP} $< > $@
problems/implication/%.tstp: problems/implication/%.tptp
@echo $@
@${ATP} $< > $@
problems/biconditional/%.tstp: problems/biconditional/%.tptp
@echo $@
@${ATP} $< > $@
problems/negation/%.tstp: problems/negation/%.tptp
@echo $@
@${ATP} $< > $@
problems/prop-metis/%.tstp: problems/prop-metis/%.tptp
@echo $@
@${ATP} $< > $@
.PHONY : tex
tex :
make clean
latexmk -pdf tptp.tex
make solutions
latexmk -pdf tstp.tex
latexmk -c
.PHONY : clean
clean:
find . -type f -name "*.agda" -delete
find . -type f -name "*.aux" -delete
find . -type f -name "*.DS_Store" -delete
find . -type f -name "*.dvi" -delete
find . -type f -name "*.fdb_latexmk" -delete
find . -type f -name "*.fls" -delete
find . -type f -name "*.log" -delete
find . -type f -name "*.lol" -delete
find . -type f -name "*.out" -delete
find . -type f -name "*.pdf" -delete
find . -type f -name "*.soc" -delete
find . -type f -name "*.synctex.gz" -delete
find . -type f -name "*.synctex.gz(busy)" -delete
find . -type f -name "*.toc" -delete
find . -type f -name "*.tstp" -delete