fej/Makefile

48 lines
490 B
Makefile
Raw Normal View History

IMAGE := chewingbever/fej
2021-03-05 19:40:49 +00:00
2021-03-05 19:06:17 +00:00
all: debug
.PHONY: all
# Builds
debug:
@ cargo build
.PHONY: debug
release:
@ cargo build --release
.PHONY: release
2021-03-05 19:40:49 +00:00
image: Dockerfile
2021-03-23 09:42:20 +00:00
@ ./build '$(IMAGE)'
2021-03-05 19:40:49 +00:00
.PHONY: image
2021-03-23 08:37:18 +00:00
push:
2021-03-23 09:42:20 +00:00
@ ./build '$(IMAGE)' push
.PHONY: push
2021-03-05 19:06:17 +00:00
# Run
run:
@ RUST_BACKTRACE=1 cargo run
2021-03-05 22:34:38 +00:00
.PHONY: run
2021-03-05 19:40:49 +00:00
2021-03-05 22:34:38 +00:00
# Testing
test:
@ cargo test
.PHONY: test
2021-04-02 19:20:36 +00:00
format:
@ cargo fmt
.PHONY: format
lint:
@ cargo fmt -- --check
.PHONY: lint
# Documentation
docs:
@ cargo doc --no-deps
.PHONY: docs