-
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (22 loc) Β· 616 Bytes
/
Makefile
File metadata and controls
33 lines (22 loc) Β· 616 Bytes
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
.PHONY: all install uninstall test build debug static
PREFIX ?= /usr
all: build
debug:
shards build
build:
shards build --production --release --no-debug
static:
shards build --production --release --no-debug --static
build_mt:
shards build --production --no-debug --release -Dpreview_mt
static_mt:
shards build --production --no-debug --release -Dpreview_mt --static
test_all: test test_mt
test:
crystal spec --order random
test_mt:
crystal spec --order random -Dpreview_mt
install:
install -D -m 0755 bin/blahaj $(DESTDIR)$(PREFIX)/bin/blahaj
uninstall:
rm -f $(DESTDIR)$(PREFIX)/bin/blahaj