1 | # Creates "generated" files users will depend on.
|
---|
2 | actions Gen {
|
---|
3 | echo '>' Start generating $(<)
|
---|
4 | sleep 1
|
---|
5 | echo '>' Done generating $(<)
|
---|
6 | }
|
---|
7 |
|
---|
8 | # Will use files generated by a 'Gen' actions.
|
---|
9 | rule Use {
|
---|
10 | DEPENDS $(<) : $(>) ;
|
---|
11 | }
|
---|
12 |
|
---|
13 | actions Use {
|
---|
14 | echo "> $(<) is using generated file" $(>)
|
---|
15 | sleep 1
|
---|
16 | echo "> $(<) is done."
|
---|
17 | }
|
---|
18 |
|
---|
19 | Gen g1.generated g2.generated ;
|
---|
20 |
|
---|
21 | Use u1.user : g1.generated ;
|
---|
22 | Use u2.user : g2.generated ;
|
---|
23 |
|
---|
24 | DEPENDS all : u1.user u2.user ;
|
---|
25 | #DEPENDS g2.generated : g1.generated ;
|
---|