29 lines
600 B
Makefile
29 lines
600 B
Makefile
NAME=zero_epsilon
|
|
include .env
|
|
|
|
all: deps_opt build
|
|
|
|
run: build
|
|
./$(NAME)
|
|
build:
|
|
crystal build src/$(NAME).cr --stats --error-trace
|
|
debug:
|
|
crystal build src/$(NAME).cr --stats --error-trace # todo add debug flag
|
|
|
|
release:
|
|
crystal build src/$(NAME).cr --stats --release
|
|
test:
|
|
crystal spec --error-trace
|
|
deps:
|
|
shards install
|
|
deps_update:
|
|
shards update
|
|
deps_opt:
|
|
@[ -d lib/ ] || make deps
|
|
doc:
|
|
crystal docs ./src/zero_epsilon.cr ./src/tests/physics_sandbox.cr ./lib/crsfml/src/crsfml.cr ./lib/imgui/src/imgui.cr
|
|
clean:
|
|
rm $(NAME)
|
|
|
|
.PHONY: all run build release test deps deps_update clean doc
|