Skip to content

Commit

Permalink
refactor: move configure.ml to boot
Browse files Browse the repository at this point in the history
With the goal of moving all source files from the repo root

Signed-off-by: Rudi Grinberg <me@rgrinberg.com>

ps-id: 4edcaf6c-4acd-4f25-9d2a-326093c4462c
  • Loading branch information
rgrinberg committed Oct 19, 2022
1 parent 3bf17ff commit 84419d2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
File renamed without changes.
1 change: 1 addition & 0 deletions boot/dune
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

(executable
(name duneboot)
(modules :standard \ configure)
(libraries unix))

;; For unused value warnings. We don't write a plain empty
Expand Down
2 changes: 1 addition & 1 deletion configure
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/sh
exec ocaml configure.ml "$@"
exec ocaml boot/configure.ml "$@"
5 changes: 3 additions & 2 deletions src/dune_rules/dune
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,12 @@
(mode promote)
(alias runtest)
(targets setup.defaults.ml)
(deps %{project_root}/configure.ml)
(deps
(:configure %{project_root}/boot/configure.ml))
(action
(chdir
%{project_root}
(setenv
DUNE_CONFIGURE_OUTPUT
"src/dune_rules/setup.defaults.ml"
(run %{ocaml} configure.ml)))))
(run %{ocaml} %{configure})))))

0 comments on commit 84419d2

Please sign in to comment.