forked from agda/cubical
-
Notifications
You must be signed in to change notification settings - Fork 0
/
GNUmakefile
73 lines (56 loc) · 1.69 KB
/
GNUmakefile
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
AGDA_BIN?=agda
AGDA_FLAGS?=-W error
AGDA_EXEC?=$(AGDA_BIN) $(AGDA_FLAGS)
FIX_WHITESPACE?=fix-whitespace
RTS_OPTIONS=+RTS -H3G -RTS
AGDA=$(AGDA_EXEC) $(RTS_OPTIONS)
RUNHASKELL?=runhaskell
EVERYTHINGS=$(RUNHASKELL) ./Everythings.hs
.PHONY : all
all : build
.PHONY : build
build :
$(MAKE) AGDA_EXEC=$(AGDA_BIN) gen-everythings check
.PHONY : test
test : check-whitespace gen-and-check-everythings check-README check
# checking and fixing whitespace
.PHONY : fix-whitespace
fix-whitespace:
$(FIX_WHITESPACE)
.PHONY : check-whitespace
check-whitespace:
$(FIX_WHITESPACE) --check
# checking and generating Everything files
.PHONY : check-everythings
check-everythings:
$(EVERYTHINGS) check-except Experiments
.PHONY : gen-everythings
gen-everythings:
$(EVERYTHINGS) gen-except Core Foundations Codata Experiments
.PHONY : gen-and-check-everythings
gen-and-check-everythings:
$(EVERYTHINGS) gen-except Core Foundations Codata Experiments
$(EVERYTHINGS) check Core Foundations Codata
.PHONY : check-README
check-README:
$(EVERYTHINGS) check-README
# typechecking and generating listings for all files imported in README
.PHONY : check
check: gen-everythings
$(AGDA) Cubical/README.agda
$(AGDA) Cubical/WithK.agda
.PHONY : timings
timings: clean gen-everythings
$(AGDA) -v profile.modules:10 Cubical/README.agda
.PHONY : listings
listings: $(wildcard Cubical/**/*.agda)
$(AGDA) -i. -isrc --html Cubical/README.agda -v0
.PHONY : clean
clean:
find . -type f -name '*.agdai' -delete
.PHONY: debug
debug : ## Print debug information.
@echo "AGDA_BIN = $(AGDA_BIN)"
@echo "AGDA_FLAGS = $(AGDA_FLAGS)"
@echo "AGDA_EXEC = $(AGDA_EXEC)"
@echo "AGDA = $(AGDA)"