48 lines
490 B
Makefile
48 lines
490 B
Makefile
IMAGE := chewingbever/fej
|
|
|
|
|
|
all: debug
|
|
.PHONY: all
|
|
|
|
# Builds
|
|
debug:
|
|
@ cargo build
|
|
.PHONY: debug
|
|
|
|
release:
|
|
@ cargo build --release
|
|
.PHONY: release
|
|
|
|
image: Dockerfile
|
|
@ ./build '$(IMAGE)'
|
|
.PHONY: image
|
|
|
|
push:
|
|
@ ./build '$(IMAGE)' push
|
|
.PHONY: push
|
|
|
|
# Run
|
|
run:
|
|
@ RUST_BACKTRACE=1 cargo run
|
|
.PHONY: run
|
|
|
|
|
|
# Testing
|
|
test:
|
|
@ cargo test
|
|
.PHONY: test
|
|
|
|
format:
|
|
@ cargo fmt
|
|
.PHONY: format
|
|
|
|
lint:
|
|
@ cargo fmt -- --check
|
|
.PHONY: lint
|
|
|
|
|
|
# Documentation
|
|
docs:
|
|
@ cargo doc --no-deps
|
|
.PHONY: docs
|