ocaml-trace/Makefile
Simon Cruanes 5e69650534
add perfetto with single .proto file, parts of it commented
we only want to encode data, and only part of it, so we can skip
some java-specific messages, as well as the whole Ftrace subsystem.
2025-11-04 13:21:49 -05:00

33 lines
790 B
Makefile

DUNE_OPTS?=
all:
dune build @all $(DUNE_OPTS)
clean:
@dune clean
test:
@dune runtest $(DUNE_OPTS)
test-autopromote:
@dune runtest $(DUNE_OPTS) --auto-promote
doc:
@dune build $(DUNE_OPTS) @doc
genproto:
FORCE_GENPROTO=true dune build @lint --auto-promote
WATCH?= @install @runtest
watch:
dune build $(DUNE_OPTS) -w $(WATCH)
.PHONY: test clean watch
VERSION=$(shell awk '/^version:/ {print $$2}' trace.opam)
update_next_tag:
@echo "update version to $(VERSION)..."
sed --follow-symlinks -i "s/NEXT_VERSION/$(VERSION)/g" $(wildcard src/**.ml) $(wildcard src/**.mli) \
$(wildcard src/**/*.ml) $(wildcard src/**/*.mli)
sed --follow-symlinks -i "s/NEXT_RELEASE/$(VERSION)/g" $(wildcard src/**.ml) $(wildcard src/**.mli) \
$(wildcard src/**/*.ml) $(wildcard src/**/*.mli)