shard-ameba/Makefile
V. Elenhaupt 6ca4e38167
Ameba cli & binary (#7)
* Ameba cli & binary

* -1 when ameba found issues

* Add postscript to shard.yml

* Correct postinstall

* Remove targets

* Try executables
2017-11-01 17:21:41 +02:00

10 lines
240 B
Makefile

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