dodb.cr/Makefile

28 lines
535 B
Makefile
Raw Normal View History

2024-05-06 14:41:07 +02:00
all: build
2024-05-11 01:49:06 +02:00
OPTS ?= --progress --no-debug
2024-05-06 14:41:07 +02:00
Q ?= @
SHOULD_UPDATE = ./bin/should-update
DBDIR=/tmp/tests-on-dodb
benchmark-cars:
2024-05-11 01:49:06 +02:00
$(Q)crystal build spec/benchmark-cars.cr $(OPTS) --release
2024-05-06 14:41:07 +02:00
build: benchmark-cars
wipe-db:
rm -r $(DBDIR)
release:
make build OPTS="--release --progress"
2024-05-17 19:47:11 +02:00
doc:
crystal docs
HTTPD_ACCESS_LOGS ?= /tmp/access-dodb-docs.log
HTTPD_ADDR ?= 127.0.0.1
HTTPD_PORT ?= 9000
DIR ?= docs
serve-doc:
darkhttpd $(DIR) --addr $(HTTPD_ADDR) --port $(HTTPD_PORT) --log $(HTTPD_ACCESS_LOGS)