-
-
Notifications
You must be signed in to change notification settings - Fork 125
/
Makefile
51 lines (36 loc) · 891 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
PREFIX ?= /usr/local
INSTALL_DIR=$(PREFIX)/bin
all: uglify | build
uglify:
yarn
yarn uglify
setup: libs
yarn
yarn gulp dev
build: libs
crystal build src/mango.cr --release --progress --error-trace
static: uglify | libs
crystal build src/mango.cr --release --progress --static --error-trace
libs:
shards install --production
run:
crystal run src/mango.cr --error-trace
test:
crystal spec
check:
crystal tool format --check
./bin/ameba
arm32v7:
crystal build src/mango.cr --release --progress --error-trace --cross-compile --target='arm-linux-gnueabihf' -o mango-arm32v7
arm64v8:
crystal build src/mango.cr --release --progress --error-trace --cross-compile --target='aarch64-linux-gnu' -o mango-arm64v8
install:
cp mango $(INSTALL_DIR)/mango
uninstall:
rm -f $(INSTALL_DIR)/mango
cleandist:
rm -rf dist
rm -f yarn.lock
rm -rf node_modules
clean:
rm -f mango