shard-ameba/Makefile
Vitalii Elenhaupt 6a28e21162
Install binary to shard/bin folder
Just a workaround before https://github.com/crystal-lang/shards/pull/126
becomes live.
2017-11-16 10:18:11 +02:00

17 lines
372 B
Makefile

CRYSTAL_BIN ?= $(shell which crystal)
PREFIX ?= /usr/local
SHARD_BIN ?= ../../bin
build:
$(CRYSTAL_BIN) build --release --no-debug -o bin/ameba src/cli.cr $(CRFLAGS)
clean:
rm -f ./bin/ameba
install: build
mkdir -p $(PREFIX)/bin
cp ./bin/ameba $(PREFIX)/bin
bin: build
mkdir -p $(SHARD_BIN)
cp ./bin/ameba $(SHARD_BIN)
test: build
$(CRYSTAL_BIN) spec
./bin/ameba