[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Using make to create directories
From: |
Ian Lynagh |
Subject: |
Re: Using make to create directories |
Date: |
Fri, 2 Oct 2009 14:34:11 +0100 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
On Fri, Oct 02, 2009 at 09:13:44AM -0400, Paul Smith wrote:
>
> Why don't you just use "mkdir -p"?
>
> default: a/b/c/
>
> a/b/c/ : ; mkdir -p $@
I'll have to look into how portable "mkdir -p" is, and whether bad
things can happen if "mkdir -p a/b/c" and "mkdir -p a/b/x" are run in
parallel with "make -j".
> To answer your question, there's no way to do that without using a
> complicated expression combining $(foreach ...) and $(eval ...) and
> probably a few other functions such as patsubst to turn / into space
> etc.
I feared as much. Thanks for the reply.
Thanks
Ian