> > >   foo: file1 file2
> > >           bar
> 
> You mistyped this.  You mean (based on your description above), that
> you need a target like this:
> 
>         file1 <and> file2:
>               bar
>         foo: file1 file2

Yep.

> [...] you have to use a trick I usually refer to as a "sentinel
> file".  Write your rule like this:
> 
>         foo: file1 file2
>         file1 file2: .sentinel
>         .sentinel:
>               bar
>               @touch $@

This works, thanks!  Please document this restriction in section
`Multiple Targets in a Rule' (together with your solution).


    Werner


_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to