This commit is contained in:
parent
aa2ff7b2f0
commit
2f3113f55d
11742 changed files with 1223940 additions and 0 deletions
|
|
@ -0,0 +1,21 @@
|
|||
Generate the source of an executable in a subdir:
|
||||
|
||||
$ cat >dune-project <<EOF
|
||||
> (lang dune 3.2)
|
||||
> (using directory-targets 0.1)
|
||||
> EOF
|
||||
|
||||
$ cat >dune <<EOF
|
||||
> (rule
|
||||
> (targets (dir foo))
|
||||
> (action (bash "mkdir foo && cat 'print_endline \"42\";;' > foo/bar.ml")))
|
||||
> (include_subdirs unqualified)
|
||||
> (executable (name bar))
|
||||
> EOF
|
||||
|
||||
$ dune exec ./bar.exe
|
||||
File "dune", line 5, characters 18-21:
|
||||
5 | (executable (name bar))
|
||||
^^^
|
||||
Error: Module "Bar" doesn't exist.
|
||||
[1]
|
||||
Loading…
Add table
Add a link
Reference in a new issue