[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Using make to create directories
From: |
Ian Lynagh |
Subject: |
Using make to create directories |
Date: |
Fri, 2 Oct 2009 14:00:36 +0100 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
Hi all,
I would like to use make to create directories, something like this
(which works):
# --------------
default: a/b/c/
a/b/c/ : | a/b/
mkdir $@
a/b/ : | a/
mkdir $@
a/ : | ./
mkdir $@
# --------------
but I don't want to have to have an explicit rule for every directory;
instead I want something like this (which doesn't work):
# --------------
.SECONDEXPANSION:
default: a/b/c/
% : | $$(dir %)
mkdir $@
./ : ;
# --------------
Please can you tell me if there is a way to do this?
Thanks
Ian
- Using make to create directories,
Ian Lynagh <=