mirror of
https://gitea.invidious.io/iv-org/shard-ameba.git
synced 2024-08-15 00:53:29 +00:00
34 lines
497 B
Makefile
34 lines
497 B
Makefile
CRYSTAL_BIN ?= crystal
|
|
SHARDS_BIN ?= shards
|
|
PREFIX ?= /usr/local
|
|
SHARD_BIN ?= ../../bin
|
|
CRFLAGS ?= -Dpreview_mt
|
|
|
|
.PHONY: build
|
|
build:
|
|
$(SHARDS_BIN) build $(CRFLAGS)
|
|
|
|
.PHONY: lint
|
|
lint: build
|
|
./bin/ameba
|
|
|
|
.PHONY: spec
|
|
spec:
|
|
$(CRYSTAL_BIN) spec
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
rm -f ./bin/ameba ./bin/ameba.dwarf
|
|
|
|
.PHONY: install
|
|
install: build
|
|
mkdir -p $(PREFIX)/bin
|
|
cp ./bin/ameba $(PREFIX)/bin
|
|
|
|
.PHONY: bin
|
|
bin: build
|
|
mkdir -p $(SHARD_BIN)
|
|
cp ./bin/ameba $(SHARD_BIN)
|
|
|
|
.PHONY: test
|
|
test: spec lint
|