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
|
|
|
|
|
|
|
build:
|
2018-04-11 10:44:02 +00:00
|
|
|
$(SHARDS_BIN) build --no-debug $(CRFLAGS)
|
2017-11-01 15:21:41 +00:00
|
|
|
clean:
|
|
|
|
rm -f ./bin/ameba
|
|
|
|
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)
|
2017-11-05 20:08:01 +00:00
|
|
|
test: build
|
|
|
|
$(CRYSTAL_BIN) spec
|
|
|
|
./bin/ameba
|