forked from mint-lang/mint
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
42 lines (32 loc) · 812 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
.PHONY: build
build: bin/mint
.PHONY: spec
spec:
crystal spec --error-on-warnings --error-trace --progress
.PHONY: format
format:
crystal tool format
.PHONY: format-core
format-core: build
cd core && ../bin/mint format
cd core/tests && ../../bin/mint format
.PHONY: ameba
ameba:
bin/ameba
.PHONY: test
test: spec ameba
.PHONY: test-core
test-core: build
cd core/tests && ../../bin/mint test -b firefox
.PHONY: development
development: build
mv bin/mint ~/.bin/mint-dev
.PHONY: local
local: build
mv bin/mint ~/.bin/mint
.PHONY: documentation
documentation:
rm -rf docs && crystal docs
# This builds the binary and depends on files in "src" and "core" directories.
bin/mint: $(shell find src -type f) $(shell find core/source -type f)
shards build --error-on-warnings --error-trace --progress