mirror of
https://github.com/LCPQ/quantum_package
synced 2024-12-23 04:43:50 +01:00
Added ocaml/opam install in setup_environment.sh
This commit is contained in:
parent
0a8ebcfbd3
commit
287a2b1ef3
2
Makefile
2
Makefile
@ -27,3 +27,5 @@ doc:
|
|||||||
src: irpf90 EZFIO
|
src: irpf90 EZFIO
|
||||||
export QPACKAGE_ROOT=$$PWD ; \
|
export QPACKAGE_ROOT=$$PWD ; \
|
||||||
$(MAKE) -C src
|
$(MAKE) -C src
|
||||||
|
|
||||||
|
|
||||||
|
@ -30,10 +30,14 @@ executables: $(ALL_EXE)
|
|||||||
mv _build/$*.inferred.mli .
|
mv _build/$*.inferred.mli .
|
||||||
|
|
||||||
%.byte: $(MLFILES) $(MLIFILES)
|
%.byte: $(MLFILES) $(MLIFILES)
|
||||||
|
rm -f -- $*
|
||||||
$(OCAMLBUILD) $*.byte -use-ocamlfind $(PKGS)
|
$(OCAMLBUILD) $*.byte -use-ocamlfind $(PKGS)
|
||||||
|
ln -s $*.native $*
|
||||||
|
|
||||||
%.native: $(MLFILES) $(MLIFILES)
|
%.native: $(MLFILES) $(MLIFILES)
|
||||||
|
rm -f -- $*
|
||||||
$(OCAMLBUILD) $*.native -use-ocamlfind $(PKGS)
|
$(OCAMLBUILD) $*.native -use-ocamlfind $(PKGS)
|
||||||
|
ln -s $*.native $*
|
||||||
|
|
||||||
ezfio.ml: ${QPACKAGE_ROOT}/EZFIO/Ocaml/ezfio.ml
|
ezfio.ml: ${QPACKAGE_ROOT}/EZFIO/Ocaml/ezfio.ml
|
||||||
cp ${QPACKAGE_ROOT}/EZFIO/Ocaml/ezfio.ml .
|
cp ${QPACKAGE_ROOT}/EZFIO/Ocaml/ezfio.ml .
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
true: package(core)
|
true: package(core,async)
|
||||||
true: thread
|
true: thread
|
||||||
|
|
||||||
|
@ -39,3 +39,15 @@ then
|
|||||||
echo "Error in IRPF90 installation"
|
echo "Error in IRPF90 installation"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Ocaml installation
|
||||||
|
make -C ocaml qp_create_ezfio_from_xyz.native
|
||||||
|
if [[ $? -ne 0 ]] then
|
||||||
|
curl -kL https://raw.github.com/hcarty/ocamlbrew/master/ocamlbrew-install | env OCAMLBREW_FLAGS="-r" bash > ocaml_install.log
|
||||||
|
grep "source " install.log | grep "etc/ocamlbrew.bashrc" >> quantum_package.rc
|
||||||
|
source quantum_package.rc
|
||||||
|
echo Y | opam install core async
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
make -C ocaml qp_compilation_test.byte
|
||||||
|
Loading…
Reference in New Issue
Block a user