Debian Codegraph @

GNUmakefile

raw
1 AGDA_EXEC ?= agda
2 AGDA_OPTIONS=-Werror
3 AGDA_RTS_OPTIONS=+RTS -M4.0G -H3.5G -A128M -RTS
4 AGDA=$(AGDA_EXEC) $(AGDA_OPTIONS) $(AGDA_RTS_OPTIONS)
5
6 # Before running `make test` the `fix-whitespace` program should
7 # be installed:
8 #
9 # cabal install fix-whitespace
10
11 test: Everything.agda check-whitespace
12 cd doc && $(AGDA) README.agda
13
14 testsuite:
15 $(MAKE) -C tests test AGDA="$(AGDA)" AGDA_EXEC="$(AGDA_EXEC)" only=$(only)
16
17 fix-whitespace:
18 cabal exec -- fix-whitespace
19
20 check-whitespace:
21 cabal exec -- fix-whitespace --check
22
23 setup: Everything.agda
24
25 .PHONY: Everything.agda
26 Everything.agda:
27 cabal run GenerateEverything -- --out-dir doc
28
29 .PHONY: listings
30 listings: Everything.agda
31 cd doc && $(AGDA) --html README.agda -v0
32
33 clean :
34 find . -type f -name '*.agdai' -delete
35 rm -f Everything.agda EverythingSafe.agda