Skip to content

Commit d26e74d

Browse files
committed
fix Makefile targets to use dune
1 parent 7592183 commit d26e74d

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

Makefile

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
.PHONY: build install uninstall clean test
22

33
build:
4-
dune build @install @js_search
5-
cp _build/default/src/js_search/search.bc.js ext/js/search.js
6-
cp _build/default/src/opam2web.exe opam2web
4+
dune build
75

86
install:
97
dune install
@@ -24,13 +22,13 @@ test-prepare:
2422

2523
test: build test-prepare
2624
cd www && \
27-
../src/_build/opam2web.native --content content path:. && \
25+
dune exec -- opam2web --content content path:. && \
2826
cp -r -L ../ext . && \
2927
xdg-open index.html
3028

3129
fulltest: build test-prepare
3230
cd www && \
33-
git clone git@github.com:ocaml/opam-repository -b master && \
34-
../src/_build/opam2web.native --content content path:opam-repository && \
31+
git clone git://github.com/ocaml/opam-repository -b master && \
32+
dune exec -- opam2web --content content path:opam-repository && \
3533
cp -r -L ../ext . && \
3634
xdg-open index.html

0 commit comments

Comments
 (0)