[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 16:56:12 +0100 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
On Fri, Oct 02, 2009 at 09:13:44AM -0400, Paul Smith wrote:
> On Fri, 2009-10-02 at 14:00 +0100, Ian Lynagh wrote:
> >
> > but I don't want to have to have an explicit rule for every directory;
>
> Why don't you just use "mkdir -p"?
>
> default: a/b/c/
>
> a/b/c/ : ; mkdir -p $@
Actually, I can't get this to work either:
# ----------------
q : foo/bar/
echo bye
%/ :
echo hi
# ----------------
$ make
make: *** No rule to make target `foo/bar', needed by `q'. Stop.
Thanks
Ian