fej/Makefile

49 lines
533 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 rel -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