fej/Makefile

49 lines
533 B
Makefile
Raw Normal View History

2021-03-05 20:06:17 +01:00
all: debug
.PHONY: all
# Builds
debug:
@ ./build -m dev -a run build
2021-03-05 20:06:17 +01:00
.PHONY: debug
release:
@ ./build -m rel
2021-03-05 20:06:17 +01:00
.PHONY: release
2021-03-23 09:37:18 +01:00
push:
2021-04-13 22:09:50 +02:00
@ ./build -m rel -a push
.PHONY: push
2021-03-05 20:06:17 +01:00
# Run
run:
@ ./build -m dev -a run
2021-03-05 23:34:38 +01:00
.PHONY: run
2021-03-05 20:40:49 +01: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:
@ ./build -m dev -a run -l -- test --no-fail-fast
2021-03-05 23:34:38 +01:00
.PHONY: test
2021-04-02 21:20:36 +02:00
format:
@ cargo fmt
.PHONY: format
lint:
@ cargo fmt -- --check
.PHONY: lint
# Documentation
docs:
@ cargo doc --no-deps
.PHONY: docs