ocaml-opentelemetry/Makefile
2026-01-20 00:15:24 -05:00

37 lines
793 B
Makefile

OPTS=--profile=release --ignore-promoted-rules
all:
@dune build @all $(OPTS)
test:
@dune runtest --force $(OPTS)
clean:
@dune clean
protoc-gen:
FORCE_GENPROTO=true dune build @lint
update-submodules:
git submodule update --init
doc:
@dune build @doc
PACKAGES=$(shell opam show . -f name)
odig-doc:
@odig odoc --cache-dir=_doc/ $(PACKAGES)
format:
@dune build @fmt --auto-promote
WATCH ?= @all
watch:
@dune build $(WATCH) -w $(OPTS)
VERSION=$(shell awk '/^version:/ {print $$2}' opentelemetry.opam)
update_next_tag:
@echo "update version to $(VERSION)..."
sed -i "s/NEXT_VERSION/$(VERSION)/g" $(wildcard src/**/*.ml) $(wildcard src/**/*.mli)
sed -i "s/NEXT_RELEASE/$(VERSION)/g" $(wildcard src/*.ml) $(wildcard src/**/*.ml) $(wildcard src/*.mli) $(wildcard src/**/*.mli)