shard-ameba/Makefile
Vitalii Elenhaupt c5729b1e9b
Remove --release flag
fixes #31

It is still possible to do:

```
$ CRFLAGS=--release make bin
```
2018-01-21 09:51:57 +02:00

17 lines
362 B
Makefile

CRYSTAL_BIN ?= $(shell which crystal)
PREFIX ?= /usr/local
SHARD_BIN ?= ../../bin
build:
$(CRYSTAL_BIN) build --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