-
Notifications
You must be signed in to change notification settings - Fork 164
Expand file tree
/
Copy pathGNUmakefile
More file actions
53 lines (41 loc) · 1.13 KB
/
GNUmakefile
File metadata and controls
53 lines (41 loc) · 1.13 KB
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
AGDA_BIN?=agda
AGDA_FLAGS?=-W error
AGDA_EXEC?=$(AGDA_BIN) $(AGDA_FLAGS)
FIX_WHITESPACE?=fix-whitespace
RTS_OPTIONS=+RTS -M32G -RTS
AGDA=$(AGDA_EXEC) $(RTS_OPTIONS)
.PHONY : all
all : build
.PHONY : build
build :
$(MAKE) AGDA_EXEC=$(AGDA_BIN) check
.PHONY : test
test : check-whitespace check
# checking and fixing whitespace
.PHONY : fix-whitespace
fix-whitespace:
$(FIX_WHITESPACE)
.PHONY : check-whitespace
check-whitespace:
$(FIX_WHITESPACE) --check
# typechecking and generating listings for all files
.PHONY : check
check:
$(AGDA) --build-library
.PHONY : timings
timings: clean
$(AGDA) --build-library -v profile.modules:10
.PHONY : listings
listings: $(wildcard Cubical/**/*.agda)
./generate-everything.sh > Cubical/Everything.agda
$(AGDA) Cubical/Everything.agda -i. -isrc --html -vhtml:0
cp -f html/Cubical.Everything.html html/index.html
.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)"