2021-04-04 18:16:41 +00:00
|
|
|
CRYSTAL_BIN ?= crystal
|
|
|
|
SHARDS_BIN ?= shards
|
2017-11-01 15:21:41 +00:00
|
|
|
PREFIX ?= /usr/local
|
2017-11-16 08:18:11 +00:00
|
|
|
SHARD_BIN ?= ../../bin
|
2022-05-03 18:35:24 +00:00
|
|
|
CRFLAGS ?= -Dpreview_mt
|
2017-11-01 15:21:41 +00:00
|
|
|
|
2023-01-02 18:06:33 +00:00
|
|
|
.PHONY: build
|
|
|
|
build:
|
2018-04-13 17:33:37 +00:00
|
|
|
$(SHARDS_BIN) build $(CRFLAGS)
|
2023-01-02 18:06:33 +00:00
|
|
|
|
|
|
|
.PHONY: lint
|
|
|
|
lint: build
|
2023-06-08 00:24:12 +00:00
|
|
|
./bin/ameba
|
2023-01-02 18:06:33 +00:00
|
|
|
|
|
|
|
.PHONY: spec
|
|
|
|
spec:
|
|
|
|
$(CRYSTAL_BIN) spec
|
|
|
|
|
|
|
|
.PHONY: clean
|
2017-11-01 15:21:41 +00:00
|
|
|
clean:
|
2018-04-13 17:33:37 +00:00
|
|
|
rm -f ./bin/ameba ./bin/ameba.dwarf
|
2023-01-02 18:06:33 +00:00
|
|
|
|
|
|
|
.PHONY: install
|
2017-11-01 15:21:41 +00:00
|
|
|
install: build
|
|
|
|
mkdir -p $(PREFIX)/bin
|
|
|
|
cp ./bin/ameba $(PREFIX)/bin
|
2023-01-02 18:06:33 +00:00
|
|
|
|
|
|
|
.PHONY: bin
|
2017-11-16 08:18:11 +00:00
|
|
|
bin: build
|
|
|
|
mkdir -p $(SHARD_BIN)
|
|
|
|
cp ./bin/ameba $(SHARD_BIN)
|
2023-01-02 18:06:33 +00:00
|
|
|
|
|
|
|
.PHONY: test
|
|
|
|
test: spec lint
|