-
Notifications
You must be signed in to change notification settings - Fork 1
/
makefile
44 lines (32 loc) · 924 Bytes
/
makefile
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
VERSION = 1.0.0-SNAPSHOT
AGDA = agda -W noDeprecationWarning
# some library paths
docs/%.html: %.agda
$(AGDA) $< --html --html-dir=./docs/
%.agdai: %.agda
$(AGDA) $<
all: lib Readme.agdai
docs/.git/:
-rm -r docs/
git clone --branch gh-pages [email protected]:metaborg/mj.agda.git docs/
gh-pages: docs/.git/ docs
docs: lib docs/Readme.html
cp docs/Readme.html docs/index.html
### libraries
lib: lib/stdlib/.git
lib/stdlib/.git:
git submodule update --init lib/stdlib
.PHONY: assumptions
assumptions:
git grep --color -Hi "postulate" -- "src/**/*.agda"
git grep --color -Hi "TERMINATING" -- "src/**/*.agda"
### cleaning
.PHONY: clean clean-all
clean:
-rm Readme.agdai
-cd src && find . -iname '*.agdai' -exec rm {} \;
release:
git clone . build
cd build && make lib && \
tar cvzf ../mj-$(VERSION).tar.gz --exclude=*.agdai --exclude-vcs src lib makefile NOTICE LICENSE Readme.agda .agda-lib
rm -rf build