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-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)
|
2017-11-05 20:08:01 +00:00
|
|
|
test: build
|
|
|
|
$(CRYSTAL_BIN) spec
|
|
|
|
./bin/ameba
|