2021-03-05 20:06:17 +01:00
|
|
|
all: debug
|
|
|
|
.PHONY: all
|
|
|
|
|
|
|
|
# Builds
|
|
|
|
debug:
|
2021-04-13 21:43:30 +02:00
|
|
|
@ ./build -m dev -a run build
|
2021-03-05 20:06:17 +01:00
|
|
|
.PHONY: debug
|
|
|
|
|
|
|
|
release:
|
2021-04-12 17:39:52 +02:00
|
|
|
@ ./build -m rel
|
2021-03-05 20:06:17 +01:00
|
|
|
.PHONY: release
|
|
|
|
|
2021-03-23 09:37:18 +01:00
|
|
|
push:
|
2021-04-12 17:39:52 +02:00
|
|
|
@ ./build -m prod -a push
|
2021-03-21 16:29:53 +01:00
|
|
|
.PHONY: push
|
2021-03-05 20:06:17 +01:00
|
|
|
|
|
|
|
# Run
|
|
|
|
run:
|
2021-04-12 17:39:52 +02:00
|
|
|
@ ./build -m dev -a run
|
2021-03-05 23:34:38 +01:00
|
|
|
.PHONY: run
|
2021-03-05 20:40:49 +01:00
|
|
|
|
2021-04-12 17:39:52 +02:00
|
|
|
stop:
|
|
|
|
@ docker stop -t 2 fej
|
|
|
|
.PHONY: stop
|
|
|
|
|
|
|
|
logs:
|
|
|
|
@ docker logs -f fej
|
|
|
|
.PHONY: logs
|
|
|
|
|
2021-03-05 23:34:38 +01:00
|
|
|
|
|
|
|
# Testing
|
|
|
|
test:
|
2021-04-12 17:39:52 +02:00
|
|
|
@ ./build -m dev -a run -l -- test --no-fail-fast
|
2021-03-05 23:34:38 +01:00
|
|
|
.PHONY: test
|
2021-03-11 20:52:30 +01:00
|
|
|
|
2021-04-02 21:20:36 +02:00
|
|
|
format:
|
|
|
|
@ cargo fmt
|
|
|
|
.PHONY: format
|
|
|
|
|
2021-04-04 09:57:19 +02:00
|
|
|
lint:
|
|
|
|
@ cargo fmt -- --check
|
|
|
|
.PHONY: lint
|
|
|
|
|
2021-03-11 20:52:30 +01:00
|
|
|
|
|
|
|
# Documentation
|
|
|
|
docs:
|
|
|
|
@ cargo doc --no-deps
|
|
|
|
.PHONY: docs
|