forked from agda/agda-stdlib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGNUmakefile
33 lines (26 loc) · 919 Bytes
/
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
AGDA_EXEC=agda
RTS_OPTIONS=+RTS -M3.5G -H3.5G -A128M -RTS
AGDA=$(AGDA_EXEC) $(RTS_OPTIONS)
# Before running `make test` the `fix-agda-whitespace` program should
# be installed:
#
# cd agda-development-version-path/src/fix-agda-whitespace
# cabal install
test: Everything.agda check-whitespace
$(AGDA) -i. -isrc README.agda
check-whitespace:
cabal exec -- fix-agda-whitespace --check
setup: Everything.agda
.PHONY: Everything.agda
Everything.agda:
# The command `cabal build` is needed by cabal-install 3.0.0.0 and the
# command `cabal install` is needed by cabal-install <= 2.4.*. I did
# not found any problem running both commands with different versions
# of cabal-install. See Issue #1001.
cabal clean && cabal build && cabal install
cabal exec -- GenerateEverything
.PHONY: listings
listings: Everything.agda
$(AGDA) -i. -isrc --html README.agda -v0
clean :
find . -type f -name '*.agdai' -delete