2021-03-21 16:29:53 +01:00
|
|
|
IMAGE := chewingbever/fej
|
|
|
|
TAG := 0.1-dev
|
2021-03-05 20:40:49 +01:00
|
|
|
shell := /bin/bash
|
|
|
|
|
|
|
|
|
2021-03-05 20:06:17 +01:00
|
|
|
all: debug
|
|
|
|
.PHONY: all
|
|
|
|
|
|
|
|
# Builds
|
|
|
|
debug:
|
|
|
|
@ cargo build
|
|
|
|
.PHONY: debug
|
|
|
|
|
|
|
|
release:
|
|
|
|
@ cargo build --release
|
|
|
|
.PHONY: release
|
|
|
|
|
2021-03-05 20:40:49 +01:00
|
|
|
image: Dockerfile
|
2021-03-21 16:29:53 +01:00
|
|
|
@ docker build -t '$(IMAGE):$(TAG)' .
|
2021-03-05 20:40:49 +01:00
|
|
|
.PHONY: image
|
|
|
|
|
2021-03-21 16:29:53 +01:00
|
|
|
push: image
|
|
|
|
@ docker push '$(IMAGE):$(TAG)'
|
|
|
|
.PHONY: push
|
2021-03-05 20:06:17 +01:00
|
|
|
|
|
|
|
# Run
|
|
|
|
run:
|
|
|
|
@ cargo run
|
2021-03-05 23:34:38 +01:00
|
|
|
.PHONY: run
|
2021-03-05 20:40:49 +01:00
|
|
|
|
2021-03-05 23:34:38 +01:00
|
|
|
|
|
|
|
# Testing
|
|
|
|
test:
|
|
|
|
@ cargo test
|
|
|
|
.PHONY: test
|
2021-03-11 20:52:30 +01:00
|
|
|
|
|
|
|
|
|
|
|
# Documentation
|
|
|
|
docs:
|
|
|
|
@ cargo doc --no-deps
|
|
|
|
.PHONY: docs
|