-
Notifications
You must be signed in to change notification settings - Fork 18
/
Makefile
58 lines (42 loc) · 921 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
pkg=
all: build-all doc-all test-all
build-all: build-lib install-lib build-rest
build-lib:
make build pkg=typedefs-core
build-rest:
make build pkg=typedefs-examples
make build pkg=typedefs-core
make build pkg=typedefs-js
doc-all:
make doc pkg=typedefs-core
test-all:
make test pkg=typedefs-core
install-lib:
make install pkg=typedefs-core
install-all:
make install pkg=typedefs
make install pkg=typedefs-examples
make install pkg=typedefs-core
make install pkg=typedefs-js
clean-all:
make clean pkg=typedefs
make clean pkg=typedefs-examples
make clean pkg=typedefs-core
make clean pkg=typedefs-js
build: src
idris --build ${pkg}.ipkg
install: src
idris --install ${pkg}.ipkg
test: src
idris --testpkg ${pkg}.ipkg
doc: src
idris --mkdoc ${pkg}.ipkg
clean:
idris --clean ${pkg}.ipkg
repl:
idris -i src
nix:
if [ -z "${pkg}" ]; \
then nix-build; \
else nix-build -A ${pkg}; \
fi