-
-
Notifications
You must be signed in to change notification settings - Fork 147
/
Makefile
68 lines (54 loc) · 1.43 KB
/
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
59
60
61
62
63
64
65
66
67
68
.PHONY: build
build: bin/mint
.PHONY: spec
spec:
crystal spec --error-on-warnings --error-trace --progress
.PHONY: spec-cli
spec-cli: build
crystal spec spec_cli/*_spec.cr spec_cli/**/*_spec.cr --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 chrome
.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
.PHONY: development-release
development-release:
docker-compose run --rm app \
crystal build src/mint.cr -o mint-dev --static --no-debug --release
mv ./mint-dev ~/.bin/
src/assets/runtime.js: \
$(shell find runtime/src -type f) \
runtime/index.js
cd runtime && make index
src/assets/runtime_test.js: \
$(shell find runtime/src -type f) \
runtime/index_testing.js \
runtime/index.js
cd runtime && make index_testing
# This builds the binary and depends on files in some directories.
bin/mint: \
$(shell find core/source -type f) \
$(shell find runtime/src -type f) \
$(shell find src -type f) \
src/assets/runtime_test.js \
src/assets/runtime.js
shards build --error-on-warnings --error-trace --progress