mirror of
https://github.com/c-cube/tiny_httpd.git
synced 2025-12-06 03:05:29 -05:00
31 lines
708 B
Makefile
31 lines
708 B
Makefile
|
|
|
|
all: build test
|
|
|
|
OPTS?=--profile=release
|
|
build:
|
|
@dune build @install $(OPTS)
|
|
|
|
test:
|
|
@dune runtest --no-buffer --force $(OPTS)
|
|
|
|
clean:
|
|
@dune clean
|
|
|
|
doc:
|
|
@dune build @doc
|
|
|
|
WATCH?= @install @runtest
|
|
watch:
|
|
@dune build $(OPTS) $(WATCH) -w
|
|
|
|
.PHONY: benchs tests build watch
|
|
|
|
VERSION=$(shell awk '/^version:/ {print $$2}' tiny_httpd.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)
|