2017-11-01 15:21:41 +00:00
|
|
|
CRYSTAL_BIN ?= $(shell which crystal)
|
2018-04-11 10:44:02 +00:00
|
|
|
SHARDS_BIN ?= $(shell which shards)
|
2017-11-01 15:21:41 +00:00
|
|
|
PREFIX ?= /usr/local
|
2017-11-16 08:18:11 +00:00
|
|
|
SHARD_BIN ?= ../../bin
|
2017-11-01 15:21:41 +00:00
|
|
|
|
2018-07-03 08:35:44 +00:00
|
|
|
build: bin/ameba
|
|
|
|
bin/ameba:
|
2018-04-13 17:33:37 +00:00
|
|
|
$(SHARDS_BIN) build $(CRFLAGS)
|
2017-11-01 15:21:41 +00:00
|
|
|
clean:
|
2018-04-13 17:33:37 +00:00
|
|
|
rm -f ./bin/ameba ./bin/ameba.dwarf
|
2017-11-01 15:21:41 +00:00
|
|
|
install: build
|
|
|
|
mkdir -p $(PREFIX)/bin
|
|
|
|
cp ./bin/ameba $(PREFIX)/bin
|
2017-11-16 08:18:11 +00:00
|
|
|
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
|
2017-11-05 20:08:01 +00:00
|
|
|
test: build
|
|
|
|
$(CRYSTAL_BIN) spec
|
2018-07-04 12:20:35 +00:00
|
|
|
./bin/ameba --all
|