Simplified OCaml build

This commit is contained in:
Anthony Scemama 2015-12-29 02:37:35 +01:00
parent 90361ba33e
commit 5bc0bf58df
2 changed files with 3 additions and 5 deletions

View File

@ -28,7 +28,7 @@ rule compile_ocaml_dep
pool = console
rule compile_ocaml
command = scripts/compile_ocaml.sh $target
command = cd ocaml ; ninja $target
description = Compiling OCaml tools
pool = console
@ -68,9 +68,7 @@ build qmcchem.tar.gz: create_archive
# Ocaml
# -----
build ocaml/generated.ninja : compile_ocaml_dep | EZFIO/Ocaml/ezfio.ml ocaml/Property.ml always
build ocaml/qmcchem : compile_ocaml | ocaml/generated.ninja EZFIO/Ocaml/ezfio.ml
target = qmcchem
build ocaml/qmcchem : compile_ocaml | EZFIO/Ocaml/ezfio.ml ocaml/Property.ml
# Copy binaries in bin

View File

@ -8,4 +8,4 @@ fi
cd ${QMCCHEM_PATH}/ocaml || exit -1
ninja ${@} || exit -1
exec ninja -f generated.ninja ${@} || exit -1