Hello Doug,

* Doug wrote on Wed, Aug 29, 2007 at 12:17:01AM CEST:
> 
> default: myfile
> myfile: mydir
>       touch mydir/myfile
> mydir:
>       mkdir -p mydir
[...]
> 
> I know I could just put the mkdir under the myfile rule, but my actual
> scenario isn't this straightforward. I am calling another program to
> create the directory and don't want to call it every time.

That doesn't yet explain why you can't just do
  myfile:
        test -d mydir || mkdir mydir
        touch mydir/myfile

Cheers,
Ralf


Reply via email to