2022-05-18 18:41:41 +02:00
|
|
|
.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
|
|
|
|
|
2022-07-28 17:22:02 +02:00
|
|
|
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
|
|
|
|
|
2022-05-18 18:41:41 +02:00
|
|
|
test:
|
|
|
|
crystal spec --order random
|
|
|
|
|
2022-07-28 17:22:02 +02:00
|
|
|
test_mt:
|
|
|
|
crystal spec --order random -Dpreview_mt
|
|
|
|
|
2022-05-18 18:41:41 +02:00
|
|
|
install:
|
2023-04-15 01:26:55 +02:00
|
|
|
install -D -m 0755 bin/blahaj $(DESTDIR)$(PREFIX)/bin/blahaj
|
2022-05-18 18:41:41 +02:00
|
|
|
|
|
|
|
uninstall:
|
2023-04-15 01:26:55 +02:00
|
|
|
rm -f $(DESTDIR)$(PREFIX)/bin/blahaj
|