mirror of
https://gitea.invidious.io/iv-org/shard-ameba.git
synced 2024-08-15 00:53:29 +00:00
13 lines
286 B
Makefile
13 lines
286 B
Makefile
CRYSTAL_BIN ?= $(shell which crystal)
|
|
PREFIX ?= /usr/local
|
|
|
|
build:
|
|
$(CRYSTAL_BIN) build --release --no-debug -o bin/ameba src/cli.cr $(CRFLAGS)
|
|
clean:
|
|
rm -f ./bin/ameba
|
|
install: build
|
|
mkdir -p $(PREFIX)/bin
|
|
cp ./bin/ameba $(PREFIX)/bin
|
|
test: build
|
|
$(CRYSTAL_BIN) spec
|
|
./bin/ameba
|