-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
33 lines (25 loc) · 990 Bytes
/
makefile
File metadata and controls
33 lines (25 loc) · 990 Bytes
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
.PHONY: andrun check check-all check-everything build run clean
andrun : build run
check:
agda src/Vatras/Main.agda
check-all:
./scripts/check-all.sh
check-everything: src/Vatras/Everything.agda
agda src/Vatras/Everything.agda
build:
agda --compile src/Vatras/Main.agda
run:
./src/Main
clean:
rm -f src/Main
rm -rf _build
rm -rf src/MAlonzo
rm -f src/Vatras/Everything.agda
find . -name "*.agdai" -type f -delete
# Don't cache src/Vatras/Everything.agda as it will break everytime some file is deleted
.PHONY: src/Vatras/Everything.agda
src/Vatras/Everything.agda:
echo '{-# OPTIONS --allow-unsolved-metas #-}' > src/Vatras/Everything.agda
echo '{-# OPTIONS --guardedness #-}' >> src/Vatras/Everything.agda
echo 'module Vatras.Everything where' >> src/Vatras/Everything.agda
find src -regextype posix-extended -regex '.*/.*\.l?agda(.md)?' -not -path 'src/Vatras/Everything.agda' | sed -E 's|^src/|import |; s|\.l?agda(.md)?$$||; s|/|.|g' >> src/Vatras/Everything.agda