mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-06 11:15:31 -05:00
clean: remove stuff specific for ocaml < 4.03
This commit is contained in:
parent
3068aacc84
commit
d9df726ca0
1 changed files with 3 additions and 5 deletions
8
Makefile
8
Makefile
|
|
@ -1,11 +1,9 @@
|
||||||
PROMOTE=$(if $(shell ocamlc -version |grep '4\.0[012]\.[0-9][0-9]*'), \
|
|
||||||
--ignore-promoted-rules, )
|
|
||||||
PACKAGES=containers,containers-data,containers-thread
|
PACKAGES=containers,containers-data,containers-thread
|
||||||
|
|
||||||
all: build test
|
all: build test
|
||||||
|
|
||||||
build:
|
build:
|
||||||
dune build $(PROMOTE) @install -p $(PACKAGES)
|
dune build @install -p $(PACKAGES)
|
||||||
|
|
||||||
test: build
|
test: build
|
||||||
dune runtest --no-buffer --force
|
dune runtest --no-buffer --force
|
||||||
|
|
@ -14,12 +12,12 @@ clean:
|
||||||
dune clean
|
dune clean
|
||||||
|
|
||||||
doc:
|
doc:
|
||||||
dune build $(PROMOTE) @doc
|
dune build @doc
|
||||||
|
|
||||||
BENCH_TARGETS=run_benchs.exe run_bench_hash.exe
|
BENCH_TARGETS=run_benchs.exe run_bench_hash.exe
|
||||||
|
|
||||||
benchs:
|
benchs:
|
||||||
dune build $(PROMOTE) $(addprefix benchs/, $(BENCH_TARGETS))
|
dune build $(addprefix benchs/, $(BENCH_TARGETS))
|
||||||
@for i in $(BENCH_TARGETS) ; do ln -sf _build/default/benchs/$$i ; done
|
@for i in $(BENCH_TARGETS) ; do ln -sf _build/default/benchs/$$i ; done
|
||||||
|
|
||||||
examples:
|
examples:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue