42 lines
440 B
Makefile
42 lines
440 B
Makefile
IMAGE := chewingbever/fej
|
|
TAG := 0.0.1-dev
|
|
shell := /bin/bash
|
|
|
|
|
|
all: debug
|
|
.PHONY: all
|
|
|
|
# Builds
|
|
debug:
|
|
@ cargo build
|
|
.PHONY: debug
|
|
|
|
release:
|
|
@ cargo build --release
|
|
.PHONY: release
|
|
|
|
image: Dockerfile
|
|
@ bash ./build '$(IMAGE)'
|
|
.PHONY: image
|
|
|
|
push:
|
|
@ bash ./build '$(IMAGE)' push
|
|
.PHONY: push
|
|
|
|
# Run
|
|
run:
|
|
@ cargo run
|
|
.PHONY: run
|
|
|
|
|
|
# Testing
|
|
test:
|
|
@ cargo test
|
|
.PHONY: test
|
|
|
|
|
|
# Documentation
|
|
docs:
|
|
@ cargo doc --no-deps
|
|
.PHONY: docs
|