Use shards build command

This commit is contained in:
Sijawusz Pur Rahnama 2018-04-11 12:44:02 +02:00 committed by V. Elenhaupt
parent 956f2e4f49
commit b225b17b5b
2 changed files with 6 additions and 1 deletions

View file

@ -1,9 +1,10 @@
CRYSTAL_BIN ?= $(shell which crystal)
SHARDS_BIN ?= $(shell which shards)
PREFIX ?= /usr/local
SHARD_BIN ?= ../../bin
build:
$(CRYSTAL_BIN) build --no-debug -o bin/ameba src/cli.cr $(CRFLAGS)
$(SHARDS_BIN) build --no-debug $(CRFLAGS)
clean:
rm -f ./bin/ameba
install: build

View file

@ -6,6 +6,10 @@ license: MIT
authors:
- Vitalii Elenhaupt <velenhaupt@gmail.com>
targets:
ameba:
main: src/cli.cr
scripts:
postinstall: make bin