shard-ameba/Makefile

35 lines
497 B
Makefile
Raw Permalink Normal View History

2021-04-04 18:16:41 +00:00
CRYSTAL_BIN ?= crystal
SHARDS_BIN ?= shards
PREFIX ?= /usr/local
SHARD_BIN ?= ../../bin
CRFLAGS ?= -Dpreview_mt
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
./bin/ameba
2023-01-02 18:06:33 +00:00
.PHONY: spec
spec:
$(CRYSTAL_BIN) spec
.PHONY: clean
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
install: build
mkdir -p $(PREFIX)/bin
cp ./bin/ameba $(PREFIX)/bin
2023-01-02 18:06:33 +00:00
.PHONY: bin
bin: build
mkdir -p $(SHARD_BIN)
cp ./bin/ameba $(SHARD_BIN)
2023-01-02 18:06:33 +00:00
.PHONY: test
test: spec lint