shard-ameba/Makefile
Vitalii Elenhaupt 4a54f6d347
Preserve run_file
closes #119
2019-11-09 23:15:01 +02:00

21 lines
452 B
Makefile

CRYSTAL_BIN ?= $(shell which crystal)
SHARDS_BIN ?= $(shell which shards)
PREFIX ?= /usr/local
SHARD_BIN ?= ../../bin
build: bin/ameba
bin/ameba:
$(SHARDS_BIN) build $(CRFLAGS)
clean:
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)
run_file:
cp -n ./bin/ameba.cr $(SHARD_BIN)
test: build
$(CRYSTAL_BIN) spec
./bin/ameba --all