fej/Makefile

49 lines
534 B
Makefile

all: debug
.PHONY: all
# Builds
debug:
@ ./build -m dev -a run build
.PHONY: debug
release:
@ ./build -m rel
.PHONY: release
push:
@ ./build -m prod -a push
.PHONY: push
# Run
run:
@ ./build -m dev -a run
.PHONY: run
stop:
@ docker stop -t 2 fej
.PHONY: stop
logs:
@ docker logs -f fej
.PHONY: logs
# Testing
test:
@ ./build -m dev -a run -l -- test --no-fail-fast
.PHONY: test
format:
@ cargo fmt
.PHONY: format
lint:
@ cargo fmt -- --check
.PHONY: lint
# Documentation
docs:
@ cargo doc --no-deps
.PHONY: docs