notes/Makefile
2019-02-21 00:17:33 +01:00

27 lines
447 B
Makefile

NAME=`ls src/*/ -d | 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:
shards install
deps_update:
shards update
deps_opt:
@[ -d lib/ ] || make deps
doc:
crystal docs
clean:
rm $(NAME)
gui: deps_opt
crystal build src/notes-gui.cr
.PHONY: all run build release test deps deps_update clean doc