This commit is contained in:
parent
aa2ff7b2f0
commit
2f3113f55d
11742 changed files with 1223940 additions and 0 deletions
|
|
@ -0,0 +1,28 @@
|
|||
A rule may have an alias field. This denotes that the action of the rule is a
|
||||
dependency of the alias.
|
||||
$ mkdir simple && cd simple
|
||||
$ cat > dune-project <<EOF
|
||||
> (lang dune 2.0)
|
||||
> EOF
|
||||
$ cat > dune <<EOF
|
||||
> (rule
|
||||
> (action (with-stdout-to foo (echo "hello world")))
|
||||
> (alias bar))
|
||||
> EOF
|
||||
$ dune build @bar
|
||||
$ cat _build/default/foo
|
||||
hello world
|
||||
$ (cd ..)
|
||||
|
||||
A rule may now have an empty set of targets if it has an alias field
|
||||
$ mkdir no-targets && cd no-targets
|
||||
$ cat > dune-project <<EOF
|
||||
> (lang dune 2.0)
|
||||
> EOF
|
||||
$ cat > dune <<EOF
|
||||
> (rule
|
||||
> (action (echo "hello world"))
|
||||
> (alias bar))
|
||||
> EOF
|
||||
$ dune build @bar
|
||||
hello world
|
||||
Loading…
Add table
Add a link
Reference in a new issue