fej/Makefile

38 lines
374 B
Makefile

IMAGE := rust-api:latest
shell := /bin/bash
all: debug
.PHONY: all
# Builds
debug:
@ cargo build
.PHONY: debug
release:
@ cargo build --release
.PHONY: release
image: Dockerfile
@ docker build -t '$(IMAGE)' .
.PHONY: image
# Run
run:
@ cargo run
.PHONY: run
# Testing
test:
@ cargo test
.PHONY: test
# Documentation
docs:
@ cargo doc --no-deps
.PHONY: docs