mirror of
https://gitlab.com/scemama/qmcchem.git
synced 2024-12-22 04:13:31 +01:00
Simplified OCaml build
This commit is contained in:
parent
90361ba33e
commit
5bc0bf58df
@ -28,7 +28,7 @@ rule compile_ocaml_dep
|
|||||||
pool = console
|
pool = console
|
||||||
|
|
||||||
rule compile_ocaml
|
rule compile_ocaml
|
||||||
command = scripts/compile_ocaml.sh $target
|
command = cd ocaml ; ninja $target
|
||||||
description = Compiling OCaml tools
|
description = Compiling OCaml tools
|
||||||
pool = console
|
pool = console
|
||||||
|
|
||||||
@ -68,9 +68,7 @@ build qmcchem.tar.gz: create_archive
|
|||||||
# Ocaml
|
# Ocaml
|
||||||
# -----
|
# -----
|
||||||
|
|
||||||
build ocaml/generated.ninja : compile_ocaml_dep | EZFIO/Ocaml/ezfio.ml ocaml/Property.ml always
|
build ocaml/qmcchem : compile_ocaml | EZFIO/Ocaml/ezfio.ml ocaml/Property.ml
|
||||||
build ocaml/qmcchem : compile_ocaml | ocaml/generated.ninja EZFIO/Ocaml/ezfio.ml
|
|
||||||
target = qmcchem
|
|
||||||
|
|
||||||
|
|
||||||
# Copy binaries in bin
|
# Copy binaries in bin
|
||||||
|
@ -8,4 +8,4 @@ fi
|
|||||||
|
|
||||||
cd ${QMCCHEM_PATH}/ocaml || exit -1
|
cd ${QMCCHEM_PATH}/ocaml || exit -1
|
||||||
|
|
||||||
ninja ${@} || exit -1
|
exec ninja -f generated.ninja ${@} || exit -1
|
||||||
|
Loading…
Reference in New Issue
Block a user