-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile
28 lines (20 loc) · 665 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
DUNE_OPTS?=
all:
dune build @all $(DUNE_OPTS)
clean:
@dune clean
test:
@dune runtest $(DUNE_OPTS)
doc:
@dune build $(DUNE_OPTS) @doc
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)