Skip to content

Commit 6c3f43e

Browse files
committed
Merge pull request #3 from avsm/fix-ocamlfind-packages
Fix ocamlfind packages and installation
2 parents 930db8b + 65be406 commit 6c3f43e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ CAMLP4_LIBS_INC=
6767
endif
6868

6969
# ocamlfind packages.
70-
STD_PACKAGES=-package str,dynlink,js_of_ocaml,js_of_ocaml_compiler
70+
STD_PACKAGES=-package str,dynlink,js_of_ocaml,js_of_ocaml.compiler
7171
ifneq ($(PACKAGES),)
7272
USER_PACKAGES=$(foreach p,$(PACKAGES),-package $(p))
7373
USER_PACKAGES_INC=$(foreach p,$(PACKAGES),`ocamlfind query -i-format $(p) -r | awk '{ printf $$0 " "}'`)
@@ -184,8 +184,10 @@ static/services/kernels/js/kernel$(EXT).js: kernel.js iocaml.js
184184
# install (not needed anymore with iocamlserver)
185185

186186
install:
187-
cp -r static `ipython locate profile iocamljs`
187+
rm -rf `opam config var share`/iocamljs-kernel
188+
mkdir -p `opam config var share`/iocamljs-kernel/profile
188189
cp -r static `opam config var share`/iocamljs-kernel/profile
190+
-which ipython >/dev/null 2>&1 && cp -r static `ipython locate profile iocamljs`
189191

190192
clean::
191193
- rm -f *.cm[io] iocaml_full.byte iocaml.byte iocaml.js

0 commit comments

Comments
 (0)