This commit is contained in:
parent
aa2ff7b2f0
commit
2f3113f55d
11742 changed files with 1223940 additions and 0 deletions
|
|
@ -0,0 +1,20 @@
|
|||
Glob deps in a subdirectory that refer to a path outside that subdirectory
|
||||
|
||||
$ cat > dune-project <<EOF
|
||||
> (lang dune 3.6)
|
||||
> EOF
|
||||
|
||||
$ mkdir -p foo bar
|
||||
|
||||
$ cat > foo/dune <<EOF
|
||||
> (rule
|
||||
> (alias x)
|
||||
> (deps (glob_files ../bar/*.txt))
|
||||
> (action (system "for i in %{deps}; do printf \"\$i\\n\"; done")))
|
||||
> EOF
|
||||
|
||||
$ touch bar/a.txt bar/b.txt
|
||||
|
||||
$ dune build @foo/x
|
||||
../bar/a.txt
|
||||
../bar/b.txt
|
||||
Loading…
Add table
Add a link
Reference in a new issue