This commit is contained in:
parent
aa2ff7b2f0
commit
2f3113f55d
11742 changed files with 1223940 additions and 0 deletions
|
|
@ -0,0 +1,33 @@
|
|||
Demonstrate the --alias argument to build aliases in the command
|
||||
line without the @ syntax
|
||||
|
||||
$ cat >dune-project <<EOF
|
||||
> (lang dune 3.19)
|
||||
> EOF
|
||||
|
||||
$ cat >dune <<EOF
|
||||
> (rule
|
||||
> (alias foo)
|
||||
> (action (echo "root: foo\n")))
|
||||
> (rule
|
||||
> (alias bar)
|
||||
> (action (echo "root: bar\n")))
|
||||
> EOF
|
||||
|
||||
$ mkdir x
|
||||
|
||||
$ cat >x/dune <<EOF
|
||||
> (rule
|
||||
> (alias bar)
|
||||
> (action (echo "x: bar\n")))
|
||||
> EOF
|
||||
|
||||
$ dune build --alias foo --alias x/bar
|
||||
root: foo
|
||||
x: bar
|
||||
|
||||
$ dune clean
|
||||
|
||||
$ dune build --alias-rec bar
|
||||
root: bar
|
||||
x: bar
|
||||
Loading…
Add table
Add a link
Reference in a new issue