-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generate french_law artifacts through dune
The files where manually generated through Makefile rules, and versionned (with an outdated version). The issue was that we had: - `dune` building Catala - Makefiles calling `catala` to build and copy the `french_law/ocaml/law_source` files - then `dune` again to build `french_law` The result was that `dune build` (without running `make` first) would return a weird error. Also, it's better to avoid versionning artifacts when we can. The proposed solution adds ad-hoc dune rules to call the catala binary, so that it can handle the whole pipeline correctly. If OCaml is purely a backend, though, a simpler solution that makes us less dependent on dune would be to handle the compilation of `french_law` manually.
- Loading branch information
Showing
11 changed files
with
39 additions
and
53,760 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
(rule | ||
(targets aides_logement.ml aides_logement_api_web.ml) | ||
(deps | ||
(source_tree ..)) | ||
(action | ||
(run | ||
catala | ||
jsoo | ||
-t | ||
--plugin-dir=../../compiler/plugins | ||
aides_logement.catala_fr))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
(rule | ||
(targets allocations_familiales.ml allocations_familiales_api_web.ml) | ||
(deps | ||
(source_tree ..)) | ||
(action | ||
(run | ||
catala | ||
jsoo | ||
-t | ||
--plugin-dir=../../compiler/plugins | ||
allocations_familiales.catala_fr))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
(rule | ||
(targets tests_allocations_familiales.ml) | ||
(deps | ||
(source_tree .)) | ||
(action | ||
(run catala OCaml -t tests_allocations_familiales.catala_fr))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* |
Oops, something went wrong.