shard-ameba/Makefile

22 lines
452 B
Makefile
Raw Normal View History

CRYSTAL_BIN ?= $(shell which crystal)
2018-04-11 10:44:02 +00:00
SHARDS_BIN ?= $(shell which 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-09 21:15:01 +00:00
cp -n ./bin/ameba.cr $(SHARD_BIN)
test: build
$(CRYSTAL_BIN) spec
./bin/ameba --all