fej/Makefile

40 lines
392 B
Makefile
Raw Normal View History

IMAGE := chewingbever/fej
2021-03-05 20:40:49 +01:00
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-23 10:42:20 +01:00
@ ./build '$(IMAGE)'
2021-03-05 20:40:49 +01:00
.PHONY: image
2021-03-23 09:37:18 +01:00
push:
2021-03-23 10:42:20 +01:00
@ ./build '$(IMAGE)' push
.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
# Documentation
docs:
@ cargo doc --no-deps
.PHONY: docs