Skip to content

Commit

Permalink
Switch to dune and include_subdirs
Browse files Browse the repository at this point in the history
Signed-off-by: Jeremie Dimino <jeremie@dimino.org>
  • Loading branch information
jeremiedimino committed Aug 6, 2018
1 parent deed007 commit 505202b
Show file tree
Hide file tree
Showing 32 changed files with 4,274 additions and 4,371 deletions.
21 changes: 21 additions & 0 deletions Camomile/charmaps/dune
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
(include_subdirs no)

(executable (name dune_gen))

(rule
(deps (glob_files sources/*))
(targets dune.inc.gen)
(action (with-stdout-to %{targets}
(run ./dune_gen.exe sources))))

(copy_files sources/*)

(alias
(name dune)
(action (diff dune.inc dune.inc.gen)))

(alias
(name runtest)
(deps (alias dune)))

(include dune.inc)
1,652 changes: 1,652 additions & 0 deletions Camomile/charmaps/dune.inc

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -97,15 +97,15 @@ let () =
let pr fmt = Printf.bprintf buf (fmt ^^ "\n") in
pr "";
pr "(install";
pr " ((section share)";
pr " (files (";
pr " (section share)";
pr " (files";
List.iter to_install ~f:(fun fn ->
pr " (%s as charmaps/%s)" fn fn);
pr " ))))";
pr " ))";
List.iter charmaps ~f:(fun (fn, targets) ->
pr "";
pr "(rule";
pr " ((targets (%s))" (String.concat ~sep:" " targets);
pr " (deps (%s))" fn;
pr " (action (run ../tools/camomilecharmap.exe -d . ${^}))))");
pr " (targets %s)" (String.concat ~sep:" " targets);
pr " (deps %s)" fn;
pr " (action (run ../tools/camomilecharmap.exe -d . %%{deps})))");
print_endline (Buffer.contents buf)
19 changes: 0 additions & 19 deletions Camomile/charmaps/jbuild

This file was deleted.

Loading

0 comments on commit 505202b

Please sign in to comment.