shard-ameba/Makefile

39 lines
574 B
Makefile
Raw 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 --all
.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: run_file
2019-07-18 10:53:04 +00:00
run_file:
2019-11-29 19:55:24 +00:00
cp -n ./bin/ameba.cr $(SHARD_BIN) || true
2023-01-02 18:06:33 +00:00
.PHONY: test
test: spec lint