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
_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make