mirror of
https://github.com/c-cube/ezcurl.git
synced 2025-12-05 19:00:34 -05:00
27 lines
532 B
Makefile
27 lines
532 B
Makefile
|
|
all: build test
|
|
|
|
build:
|
|
@dune build @install
|
|
|
|
test:
|
|
@dune runtest --no-buffer --force
|
|
|
|
clean:
|
|
@dune clean
|
|
|
|
doc:
|
|
@dune build @doc
|
|
|
|
WATCH?= @install @runtest
|
|
watch:
|
|
@dune build $(WATCH )-w
|
|
|
|
VERSION=$(shell awk '/^version:/ {print $$2}' ezcurl.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/**/*.mli)
|
|
|
|
.PHONY: all build test watch update_next_tag
|