52 lines
927 B
Makefile
52 lines
927 B
Makefile
SHELL := bash
|
|
.ONESHELL:
|
|
.SHELLFLAGS := -eu -o pipefail -c
|
|
.DELETE_ON_ERROR:
|
|
MAKEFLAGS += --warn-undefined-variables
|
|
MAKEFLAGS += --no-builtin-rules
|
|
|
|
ifeq ($(origin .RECIPEPREFIX), undefined)
|
|
$(error This Make does not support .RECIPEPREFIX. Please use GNU Make 4.0 or later)
|
|
endif
|
|
.RECIPEPREFIX = >
|
|
|
|
.PHONY: build
|
|
build:
|
|
> cargo build
|
|
|
|
.PHONY: release
|
|
release:
|
|
> cargo build --release
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
> cargo clean
|
|
|
|
.PHONY: test
|
|
test:
|
|
> cargo test --lib
|
|
|
|
.PHONY: integrationtest
|
|
integrationtest:
|
|
> cargo test --no-fail-fast --test test_loader
|
|
|
|
.PHONY: run
|
|
run:
|
|
> cargo run
|
|
|
|
.PHONY: debug
|
|
debug:
|
|
> RUST_LOG=debug cargo run
|
|
|
|
.PHONY: jaeger
|
|
jaeger:
|
|
> docker run -d --rm --name toylanguagedocker -p 6831:6831/udp -p 6832:6832/udp -p 16686:16686 -p 14268:14268 jaegertracing/all-in-one:latest
|
|
|
|
.PHONY: jaegerweb
|
|
jaegerweb:
|
|
> xdg-open 'http://localhost:16686'
|
|
|
|
.PHONY: jaegerstop
|
|
jaegerstop:
|
|
> docker stop toylanguagedocker
|