shard-ameba/Makefile

22 lines
430 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
build: bin/ameba
bin/ameba:
2018-04-13 17:33:37 +00:00
$(SHARDS_BIN) build $(CRFLAGS)
clean:
2018-04-13 17:33:37 +00:00
rm -f ./bin/ameba ./bin/ameba.dwarf
install: build
mkdir -p $(PREFIX)/bin
cp ./bin/ameba $(PREFIX)/bin
bin: build
mkdir -p $(SHARD_BIN)
cp ./bin/ameba $(SHARD_BIN)
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
test: build
$(CRYSTAL_BIN) spec
./bin/ameba --all