DashBot/Makefile
2017-09-18 15:51:53 +02:00

23 lines
388 B
Makefile

NAME=`ls -d src/*/ | cut -f2 -d'/'`
all: deps_opt build
run:
crystal run src/$(NAME).cr
build:
crystal build src/$(NAME).cr --stats
release:
crystal build src/$(NAME).cr --stats --release
test:
crystal spec
deps:
crystal deps install
deps_update:
crystal deps update
deps_opt:
@[ -d lib/ ] || make deps
doc:
crystal docs
.PHONY: all run build release test deps deps_update doc